]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: change isolate mode from #define to bitwise type
authorMinchan Kim <minchan.kim@gmail.com>
Tue, 1 Nov 2011 00:06:47 +0000 (17:06 -0700)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Sun, 7 Oct 2012 06:00:42 +0000 (23:00 -0700)
commitbccd43e4976d5be310df0e0b359af67e983af2f9
treebffd6b94c3ba0ac9bd4d6c1550ac338527d927e0
parent418d88167eecdbfccaa57d24be690cc4a6ec8a20
mm: change isolate mode from #define to bitwise type

commit 4356f21d09283dc6d39a6f7287a65ddab61e2808 upstream.

Stable note: Not tracked in Bugzilla. This patch makes later patches
easier to apply but has no other impact.

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 <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a15a3971cc49eefbde40b397a446c0fa9c5fed9c)

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
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