aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2011-05-24 20:11:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-25 11:39:09 -0400
commita6cccdc36c966e51fd969560d870cfd37afbfa9c (patch)
tree17c48382275e1852604e4a513121760a013dd2c6 /mm/page_alloc.c
parent1b79acc91115ba47e744b70bb166b77bd94f5855 (diff)
mm, mem-hotplug: update pcp->stat_threshold when memory hotplug occur
Currently, cpu hotplug updates pcp->stat_threshold, but memory hotplug doesn't. There is no reason for this. [akpm@linux-foundation.org: fix CONFIG_SMP=n build] 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> Acked-by: Christoph Lameter <cl@linux.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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e133cea36932..77773329aa72 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -39,6 +39,7 @@
39#include <linux/memory_hotplug.h> 39#include <linux/memory_hotplug.h>
40#include <linux/nodemask.h> 40#include <linux/nodemask.h>
41#include <linux/vmalloc.h> 41#include <linux/vmalloc.h>
42#include <linux/vmstat.h>
42#include <linux/mempolicy.h> 43#include <linux/mempolicy.h>
43#include <linux/stop_machine.h> 44#include <linux/stop_machine.h>
44#include <linux/sort.h> 45#include <linux/sort.h>
@@ -5152,6 +5153,7 @@ int __meminit init_per_zone_wmark_min(void)
5152 if (min_free_kbytes > 65536) 5153 if (min_free_kbytes > 65536)
5153 min_free_kbytes = 65536; 5154 min_free_kbytes = 65536;
5154 setup_per_zone_wmarks(); 5155 setup_per_zone_wmarks();
5156 refresh_zone_stat_thresholds();
5155 setup_per_zone_lowmem_reserve(); 5157 setup_per_zone_lowmem_reserve();
5156 setup_per_zone_inactive_ratio(); 5158 setup_per_zone_inactive_ratio();
5157 return 0; 5159 return 0;