Skip to content

Commit

Permalink
mm/sparse: use page_private() to get page->private value
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Yasuaki Ishimatsu <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Xishi Qiu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
yishimatsu authored and torvalds committed Feb 23, 2017
1 parent 7d41c03 commit 857e522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ static void free_map_bootmem(struct page *memmap)
BUG_ON(magic == NODE_INFO);

maps_section_nr = pfn_to_section_nr(page_to_pfn(page));
removing_section_nr = page->private;
removing_section_nr = page_private(page);

/*
* When this function is called, the removing section is
Expand Down

0 comments on commit 857e522

Please sign in to comment.