]> git.baikalelectronics.ru Git - kernel.git/commit
mm, page_alloc: avoid unnecessary zone lookups during pageblock operations
authorMel Gorman <mgorman@techsingularity.net>
Fri, 20 May 2016 00:13:36 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commitf9654df4d479a74684cfe623d1d21b2c4875af45
tree926dac7a644e2405782f3e9c0b0d0a8073882abd
parent4f1dabac3e9b66f5e219ecdd3255aec73ee4d48d
mm, page_alloc: avoid unnecessary zone lookups during pageblock operations

Pageblocks have an associated bitmap to store migrate types and whether
the pageblock should be skipped during compaction.  The bitmap may be
associated with a memory section or a zone but the zone is looked up
unconditionally.  The compiler should optimise this away automatically
so this is a cosmetic patch only in many cases.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c