]> git.kernelconcepts.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>
Thu, 13 Sep 2012 07:28:00 +0000 (17:28 +1000)
commit2ecda0704408e2d700420c02669dda06a3c481e2
treec64286844aa481609548227c671a899fa20a16e9
parentcc0eac2e50f036d4d798b18679ca2ae3c4828105
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