aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/node.c
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2009-06-16 22:32:50 +0000
committerLinus Torvalds <[email protected]>2009-06-17 02:47:42 +0000
commitbce7394a3ef82b8477952fbab838e4a6e8cb47d2 (patch)
tree7e2f50300dc4edf471a67c1871f288f031fd84f7 /drivers/base/node.c
parentpage-allocator: add inactive ratio calculation function of each zone (diff)
downloadkernel-bce7394a3ef82b8477952fbab838e4a6e8cb47d2.tar.gz
kernel-bce7394a3ef82b8477952fbab838e4a6e8cb47d2.zip
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 <[email protected]> Acked-by: Yasunori Goto <[email protected]> Cc: Rik van Riel <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/base/node.c')
0 files changed, 0 insertions, 0 deletions