diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2011-05-24 20:11:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:09 -0400 |
commit | 1b79acc91115ba47e744b70bb166b77bd94f5855 (patch) | |
tree | 9097834522de3840845368312c09b5ad4a98e5e5 /include/linux/mm.h | |
parent | 839a4fcc8af7412be2efd11f0bd0504757f79f08 (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.h | 2 |
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); | |||
1381 | extern void memmap_init_zone(unsigned long, int, unsigned long, | 1381 | extern void memmap_init_zone(unsigned long, int, unsigned long, |
1382 | unsigned long, enum memmap_context); | 1382 | unsigned long, enum memmap_context); |
1383 | extern void setup_per_zone_wmarks(void); | 1383 | extern void setup_per_zone_wmarks(void); |
1384 | extern void calculate_zone_inactive_ratio(struct zone *zone); | 1384 | extern int __meminit init_per_zone_wmark_min(void); |
1385 | extern void mem_init(void); | 1385 | extern void mem_init(void); |
1386 | extern void __init mmap_init(void); | 1386 | extern void __init mmap_init(void); |
1387 | extern void show_mem(unsigned int flags); | 1387 | extern void show_mem(unsigned int flags); |