]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: page_alloc: convert hot/cold parameter and immediate callers to bool
authorMel Gorman <mgorman@suse.de>
Wed, 14 May 2014 00:02:18 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:18 +0000 (10:02 +1000)
commitf3f2457cf21534e86ccbefaeba896830541703f4
tree35d5ed2c535df10fcc9b1072a90efaeeff976eb3
parent75409a928a527b8ea60956b4239afb73e1348e2d
mm: page_alloc: convert hot/cold parameter and immediate callers to bool

cold is a bool, make it one.  Make the likely case the "if" part of the
block instead of the else as according to the optimisation manual this is
preferred.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/tile/mm/homecache.c
fs/fuse/dev.c
include/linux/gfp.h
include/linux/pagemap.h
include/linux/swap.h
mm/page_alloc.c
mm/swap.c
mm/swap_state.c
mm/vmscan.c