]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory-hotplug: build zonelists when offlining pages
authorXishi Qiu <qiuxishi@huawei.com>
Thu, 13 Sep 2012 00:58:57 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:46:00 +0000 (20:46 +1000)
commit9c6247f7e57d048f231eb02c9e13bea449d37380
treeb552c4e58bda803a6d59bd0ca0c3787888881063
parentc90ab317e20f57271047a2a8234c0f0c7770af74
memory-hotplug: build zonelists when offlining pages

online_pages() does build_all_zonelists() and zone_pcp_update(), I think
offline_pages() should do it too.

When the zone has no memory to allocate, remove it from other nodes'
zonelists.  zone_batchsize() depends on zone's present pages, if zone's
present pages are changed, zone's pcp should be updated.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory_hotplug.c