]> 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>
Thu, 22 May 2014 00:43:20 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:20 +0000 (10:43 +1000)
commitb41b3b6c0ff37f89caf1dd5ec8f203f00d5c9080
treefc408d44ecb63a99bf71c3224f3627f147c9a335
parentd93e8dbb6c2cd2fde8d46e1ad12d19ffa1868747
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