]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove MIGRATE_ISOLATE check in hotpath
authorMinchan Kim <minchan@kernel.org>
Wed, 20 Feb 2013 02:14:31 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:40 +0000 (16:52 +1100)
commitd1a77d9f23a9dce143959f056c0625cbaa5893ab
tree84393a067377136a901e89aa66aa44625c7301bf
parent3152b38af6a0d2ee7c3f1db2e40cd1719ca98d11
mm: remove MIGRATE_ISOLATE check in hotpath

Several functions test MIGRATE_ISOLATE and some of those are hotpath but
MIGRATE_ISOLATE is used only if we enable CONFIG_MEMORY_ISOLATION(ie, CMA,
memory-hotplug and memory-failure) which are not common config option.  So
let's not add unnecessary overhead and code when we don't enable
CONFIG_MEMORY_ISOLATION.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
include/linux/page-isolation.h
mm/compaction.c
mm/page_alloc.c
mm/vmstat.c