Minchan Kim bce7394a3e page-allocator: reset wmark_min and inactive ratio of zone when hotplug happens
Solve two problems.

Whenever memory hotplug sucessfully happens, zone->present_pages
have to be changed.

1) Now memory hotplug calls setup_per_zone_wmark_min only when
   online_pages called, not offline_pages.

   It breaks balance.

2) If zone->present_pages is changed, we also have to change
   zone->inactive_ratio.  That's because inactive_ratio depends on
   zone->present_pages.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-16 19:47:42 -07:00
..
2009-06-11 19:15:54 +03:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:14 -07:00
2009-06-16 19:47:28 -07:00
2009-06-11 17:03:28 +01:00
2009-06-16 19:47:40 -07:00
2009-06-16 19:47:28 -07:00
2009-06-16 19:47:40 -07:00
2007-10-20 01:27:18 +02:00
2008-07-28 16:30:21 -07:00
2008-06-12 18:05:41 -07:00
2007-10-20 01:27:18 +02:00
2009-05-21 13:14:32 -07:00
2009-05-22 09:45:33 +10:00