diff options
author | Shaohua Li <shaohua.li@intel.com> | 2009-09-21 20:01:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:25 -0400 |
commit | 112067f0905b2de862c607ee62411cf47d2fe5c4 (patch) | |
tree | 55575b100292b764f945e4d9395989e8a734f883 /mm/memory_hotplug.c | |
parent | 478b81fd84a299adb401dbbae296f3767e552999 (diff) |
memory hotplug: update zone pcp at memory online
In my test, 128M memory is hot added, but zone's pcp batch is 0, which is
an obvious error. When pages are onlined, zone pcp should be updated
accordingly.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Yakui Zhao <yakui.zhao@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index e4412a676c88..616236e6343f 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -422,6 +422,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages) | |||
422 | zone->present_pages += onlined_pages; | 422 | zone->present_pages += onlined_pages; |
423 | zone->zone_pgdat->node_present_pages += onlined_pages; | 423 | zone->zone_pgdat->node_present_pages += onlined_pages; |
424 | 424 | ||
425 | zone_pcp_update(zone); | ||
425 | setup_per_zone_wmarks(); | 426 | setup_per_zone_wmarks(); |
426 | calculate_zone_inactive_ratio(zone); | 427 | calculate_zone_inactive_ratio(zone); |
427 | if (onlined_pages) { | 428 | if (onlined_pages) { |