]> git.baikalelectronics.ru Git - kernel.git/commit
mm/highmem: simplify is_highmem()
authorChanho Min <chanho.min@lge.com>
Fri, 20 May 2016 00:11:57 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit97e4afad1b7008e49e2d1f6d6ff5645504c7ff75
treee3a230c8660143be59b2d0ae4cd5b90a8e385fdd
parentd72f6d36f7f7ea74521996216f21b1d3b62dfdaf
mm/highmem: simplify is_highmem()

is_highmem() can be simplified by use of is_highmem_idx().  This patch
removes redundant code and will make it easier to maintain if the zone
policy is changed or a new zone is added.

(akpm: saves me 25 bytes of text per is_highmem() callsite)

Signed-off-by: Chanho Min <chanho.min@lge.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mmzone.h