aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
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 /include/linux/mm.h
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 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 57d3d5fade16..e173cd297d88 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1381,7 +1381,7 @@ extern void set_dma_reserve(unsigned long new_dma_reserve);
1381extern void memmap_init_zone(unsigned long, int, unsigned long, 1381extern void memmap_init_zone(unsigned long, int, unsigned long,
1382 unsigned long, enum memmap_context); 1382 unsigned long, enum memmap_context);
1383extern void setup_per_zone_wmarks(void); 1383extern void setup_per_zone_wmarks(void);
1384extern void calculate_zone_inactive_ratio(struct zone *zone); 1384extern int __meminit init_per_zone_wmark_min(void);
1385extern void mem_init(void); 1385extern void mem_init(void);
1386extern void __init mmap_init(void); 1386extern void __init mmap_init(void);
1387extern void show_mem(unsigned int flags); 1387extern void show_mem(unsigned int flags);