]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: change isolate mode from #define to bitwise type
authorMinchan Kim <minchan.kim@gmail.com>
Wed, 28 Sep 2011 00:49:56 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Sep 2011 06:07:58 +0000 (16:07 +1000)
commitad1c44fc4ced851d96b90da5ceae6e5b06b502d5
tree49156d7df2e8aba6822b7370c9285f87e4433ddf
parent73e96610e63655a1afdd605a97aefe2596bc027c
mm: change isolate mode from #define to bitwise type

Change ISOLATE_XXX macro with bitwise isolate_mode_t type.  Normally,
macro isn't recommended as it's type-unsafe and making debugging harder as
symbol cannot be passed throught to the debugger.

Quote from Johannes
" Hmm, it would probably be cleaner to fully convert the isolation mode
into independent flags.  INACTIVE, ACTIVE, BOTH is currently a
tri-state among flags, which is a bit ugly."

This patch moves isolate mode from swap.h to mmzone.h by memcontrol.h

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <>
Documentation/trace/postprocess/trace-vmscan-postprocess.pl
include/linux/memcontrol.h
include/linux/mmzone.h
include/linux/swap.h
include/trace/events/vmscan.h
mm/compaction.c
mm/memcontrol.c
mm/vmscan.c