]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/page_alloc.c: skip ZONE_MOVABLE if required_kernelcore is larger than totalpages
authorXishi Qiu <qiuxishi@huawei.com>
Wed, 21 Oct 2015 22:03:14 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:14 +0000 (09:03 +1100)
commit849c5ac3c5887ad9af4808a64f31b753f4c4588f
tree7653ed1830aa1fb4c70261231e68d76d2fba1de8
parentdf9050e8fcb052300880665b5f0fddd2e14b094f
mm/page_alloc.c: skip ZONE_MOVABLE if required_kernelcore is larger than totalpages

If kernelcore was not specified, or the kernelcore size is zero
(required_movablecore >= totalpages), or the kernelcore size is larger
than totalpages, there is no ZONE_MOVABLE.  We should fill the zone with
both kernel memory and movable memory.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: <zhongjiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c