diff options
author | Shaohua Li <shaohua.li@intel.com> | 2009-09-21 20:01:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:25 -0400 |
commit | 112067f0905b2de862c607ee62411cf47d2fe5c4 (patch) | |
tree | 55575b100292b764f945e4d9395989e8a734f883 /include/linux/mm.h | |
parent | 478b81fd84a299adb401dbbae296f3767e552999 (diff) |
memory hotplug: update zone pcp at memory online
In my test, 128M memory is hot added, but zone's pcp batch is 0, which is
an obvious error. When pages are onlined, zone pcp should be updated
accordingly.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Yakui Zhao <yakui.zhao@intel.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, 2 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 9a72cc78e6b8..d3c8ae7c8015 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1058,6 +1058,8 @@ extern void setup_per_cpu_pageset(void); | |||
1058 | static inline void setup_per_cpu_pageset(void) {} | 1058 | static inline void setup_per_cpu_pageset(void) {} |
1059 | #endif | 1059 | #endif |
1060 | 1060 | ||
1061 | extern void zone_pcp_update(struct zone *zone); | ||
1062 | |||
1061 | /* nommu.c */ | 1063 | /* nommu.c */ |
1062 | extern atomic_long_t mmap_pages_allocated; | 1064 | extern atomic_long_t mmap_pages_allocated; |
1063 | 1065 | ||