Commit 118c71bc authored by Yasunori Goto's avatar Yasunori Goto Committed by Linus Torvalds

[PATCH] Fix calculation of grow_pgdat_span() in mm/memory_hotplug.c

The calculation for node_spanned_pages at grow_pgdat_span() is clearly
wrong.  This is patch for it.

(Please see grow_zone_span() to compare. It is correct.)
Signed-off-by: default avatarYasunori Goto <y-goto@jp.fujitsu.com>
Acked-by: default avatarDave Hansen <haveblue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 664d22ab
...@@ -104,7 +104,7 @@ static void grow_pgdat_span(struct pglist_data *pgdat, ...@@ -104,7 +104,7 @@ static void grow_pgdat_span(struct pglist_data *pgdat,
pgdat->node_start_pfn = start_pfn; pgdat->node_start_pfn = start_pfn;
if (end_pfn > old_pgdat_end_pfn) if (end_pfn > old_pgdat_end_pfn)
pgdat->node_spanned_pages = end_pfn - pgdat->node_spanned_pages; pgdat->node_spanned_pages = end_pfn - pgdat->node_start_pfn;
} }
int online_pages(unsigned long pfn, unsigned long nr_pages) int online_pages(unsigned long pfn, unsigned long nr_pages)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment