]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: factor out memory isolate functions
authorMinchan Kim <minchan@kernel.org>
Sat, 21 Jul 2012 00:54:19 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:34 +0000 (13:02 +1000)
commit60aeeafb2235580bd3f18d2882f5436bfb0f1d2e
tree39b482590a62adc97cc010fc5350e2e434cca251
parente2ccdc901a0c993a5289336ac4cdbad90d4c5bde
mm: factor out memory isolate functions

mm/page_alloc.c has some memory isolation functions but they are used only
when we enable CONFIG_{CMA|MEMORY_HOTPLUG|MEMORY_FAILURE}.  So let's make
it configurable by new CONFIG_MEMORY_ISOLATION so that it can reduce
binary size and we can check it simple by CONFIG_MEMORY_ISOLATION, not if
defined CONFIG_{CMA|MEMORY_HOTPLUG|MEMORY_FAILURE}.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/Kconfig
include/linux/page-isolation.h
mm/Kconfig
mm/Makefile
mm/page_alloc.c
mm/page_isolation.c