Commit 61b13993 authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] memory hotplug: call setup_per_zone_pages_min after hotplug

From: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> 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: default avatarIWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-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 0b0acbec
...@@ -132,5 +132,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages) ...@@ -132,5 +132,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
} }
zone->present_pages += onlined_pages; zone->present_pages += onlined_pages;
setup_per_zone_pages_min();
return 0; return 0;
} }
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