Skip to content

Commit 857e522

Browse files
yishimatsutorvalds
authored andcommitted
mm/sparse: use page_private() to get page->private value
free_map_bootmem() uses page->private directly to set removing_section_nr argument. But to get page->private value, page_private() has been prepared. So free_map_bootmem() should use page_private() instead of page->private. Link: http://lkml.kernel.org/r/1d34eaa5-a506-8b7a-6471-490c345deef8@gmail.com Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Xishi Qiu <qiuxishi@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7d41c03 commit 857e522

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/sparse.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static void free_map_bootmem(struct page *memmap)
667667
BUG_ON(magic == NODE_INFO);
668668

669669
maps_section_nr = pfn_to_section_nr(page_to_pfn(page));
670-
removing_section_nr = page->private;
670+
removing_section_nr = page_private(page);
671671

672672
/*
673673
* When this function is called, the removing section is

0 commit comments

Comments
 (0)