]> git.baikalelectronics.ru Git - kernel.git/commit
mm, page_alloc: inline pageblock lookup in page free fast paths
authorMel Gorman <mgorman@techsingularity.net>
Fri, 20 May 2016 00:14:27 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commitdd7d34e7aad3253a8213312294698f9af320de79
treecf0231b630d9be51604133f20d56a4e617914a33
parent16a4cc4a03dbe418b5f0ba434e91fae05772282f
mm, page_alloc: inline pageblock lookup in page free fast paths

The function call overhead of get_pfnblock_flags_mask() is measurable in
the page free paths.  This patch uses an inlined version that is faster.

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>
include/linux/mmzone.h
mm/page_alloc.c
mm/page_owner.c
mm/vmstat.c