mm: remove MIGRATE_ISOLATE check in hotpath
authorMinchan Kim <minchan@kernel.org>
Sat, 23 Feb 2013 00:33:58 +0000 (16:33 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Feb 2013 01:50:15 +0000 (17:50 -0800)
commit194159fbcc0d6ac1351837d3cd7a27a4af0219a6
treea5a960a4c8698001db50a987015131bb5d256c6e
parentc60514b6314137a9505c60966fda2094b22a2fda
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mmzone.h
include/linux/page-isolation.h
mm/compaction.c
mm/page_alloc.c
mm/vmstat.c