]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory-hotplug: build zonelists when offlining pages
authorXishi Qiu <qiuxishi@huawei.com>
Fri, 7 Sep 2012 00:23:55 +0000 (10:23 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:23 +0000 (15:36 +1000)
commitfbbb22557b4b0b6d2773c8bc83d372ac1c81b6e2
treef0b11dac6b188bd414a81ab8981651d586f30f35
parent6bac52872e9b0b860caa4f45f5331ad787e4a651
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