From: Dave Hansen Date: Sun, 30 Oct 2005 01:16:56 +0000 (-0700) Subject: [PATCH] memory hotplug: call setup_per_zone_pages_min after hotplug X-Git-Tag: v2.6.15-rc1~730^2^2~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61b13993a81866fc1d4830dfab80530c9c061e37;p=linux-2.6 [PATCH] memory hotplug: call setup_per_zone_pages_min after hotplug From: IWAMOTO Toshihiro > I found the tests does not work well with Dave's patchset. > I've found the followings: > > - setup_per_zone_pages_min() calls should be added in > capture_page_range() and online_pages() > - lru_add_drain() should be called before try_to_migrate_pages() The following patch deals with the first item. Signed-off-by: IWAMOTO Toshihiro Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 2e916c308a..431a64f021 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -132,5 +132,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages) } zone->present_pages += onlined_pages; + setup_per_zone_pages_min(); + return 0; }