]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - mm/vmscan.c
mm: page_alloc: convert hot/cold parameter and immediate callers to bool
authorMel Gorman <mgorman@suse.de>
Wed, 4 Jun 2014 23:10:22 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:09 +0000 (16:54 -0700)
commitb745bc85f21ea707e4ea1a91948055fa3e72c77b
treee4d4e8b52ca84acf64b2f333485ecb6edcab8738
parent7aeb09f9104b760fc53c98cb7d20d06640baf9e6
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>
Signed-off-by: Linus Torvalds <torvalds@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