Skip to content

Commit

Permalink
[PATCH] memory hotplug: call setup_per_zone_pages_min after hotplug
Browse files Browse the repository at this point in the history
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: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Dave Hansen authored and Linus Torvalds committed Oct 30, 2005
1 parent 0b0acbe commit 61b1399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 61b1399

Please sign in to comment.