aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2011-05-24 20:11:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 11:39:09 -0400
commit1b79acc91115ba47e744b70bb166b77bd94f5855 (patch)
tree9097834522de3840845368312c09b5ad4a98e5e5 /mm/page_alloc.c
parent839a4fcc8af7412be2efd11f0bd0504757f79f08 (diff)
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 <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 56d0be36be9d..e133cea36932 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5094,7 +5094,7 @@ void setup_per_zone_wmarks(void)
5094 * 1TB 101 10GB 5094 * 1TB 101 10GB
5095 * 10TB 320 32GB 5095 * 10TB 320 32GB
5096 */ 5096 */
5097void __meminit calculate_zone_inactive_ratio(struct zone *zone) 5097static void __meminit calculate_zone_inactive_ratio(struct zone *zone)
5098{ 5098{
5099 unsigned int gb, ratio; 5099 unsigned int gb, ratio;
5100 5100
@@ -5140,7 +5140,7 @@ static void __meminit setup_per_zone_inactive_ratio(void)
5140 * 8192MB: 11584k 5140 * 8192MB: 11584k
5141 * 16384MB: 16384k 5141 * 16384MB: 16384k
5142 */ 5142 */
5143static int __init init_per_zone_wmark_min(void) 5143int __meminit init_per_zone_wmark_min(void)
5144{ 5144{
5145 unsigned long lowmem_kbytes; 5145 unsigned long lowmem_kbytes;
5146 5146