]> www.infradead.org Git - users/willy/linux.git/commit
bootmem: Use page->index instead of page->freelist
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 22 Sep 2021 19:01:37 +0000 (15:01 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 13:31:03 +0000 (09:31 -0400)
commit5fda6d05e0c9b08142c68ac37027064f7d4ee2e1
treef3b928a02c6b32570178adc5817e7489562ac564
parent009c94e347607bc4f461ebee95f257516911f3b3
bootmem: Use page->index instead of page->freelist

page->freelist is for the use of slab.  Using page->index is the same
set of bits as page->freelist, and by using an integer instead of a
pointer, we can avoid casts.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
arch/x86/mm/init_64.c
include/linux/bootmem_info.h
mm/bootmem_info.c
mm/sparse.c