mm, mem-hotplug: recalculate lowmem_reserve when memory hotplug occurs
authorKOSAKI Motohiro <[email protected]>
Wed, 25 May 2011 00:11:32 +0000 (17:11 -0700)
committerLinus Torvalds <[email protected]>
Wed, 25 May 2011 15:39:09 +0000 (08:39 -0700)
commit1b79acc91115ba47e744b70bb166b77bd94f5855
tree9097834522de3840845368312c09b5ad4a98e5e5
parent839a4fcc8af7412be2efd11f0bd0504757f79f08
mm, mem-hotplug: recalculate lowmem_reserve when memory hotplug occurs

Currently, memory hotplug calls setup_per_zone_wmarks() and
calculate_zone_inactive_ratio(), but doesn't call
setup_per_zone_lowmem_reserve().

It means the number of reserved pages aren't updated even if memory hot
plug occur.  This patch fixes it.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm.h
mm/memory_hotplug.c
mm/page_alloc.c