diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-12-11 16:01:01 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 17:22:23 -0800 |
commit | 6dcd73d7011ba9046f9b98e7f7c9d958f5810e6b (patch) | |
tree | e2cc08839a13745a21ade3d5ab22d8f8836ace80 /mm/slub.c | |
parent | 3ac19f8efe26451cacac31d0be34fa9c51114c2a (diff) | |
download | kernel_goldelico_gta04-6dcd73d7011ba9046f9b98e7f7c9d958f5810e6b.zip kernel_goldelico_gta04-6dcd73d7011ba9046f9b98e7f7c9d958f5810e6b.tar.gz kernel_goldelico_gta04-6dcd73d7011ba9046f9b98e7f7c9d958f5810e6b.tar.bz2 |
memory-hotplug: allocate zone's pcp before onlining pages
We use __free_page() to put a page to buddy system when onlining pages.
__free_page() will store NR_FREE_PAGES in zone's pcp.vm_stat_diff, so we
should allocate zone's pcp before onlining pages, otherwise we will lose
some free pages.
[mhocko@suse.cz: make zone_pcp_reset independent of MEMORY_HOTREMOVE]
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions