mm, page_alloc: shorten the page allocator fast path
authorMel Gorman <mgorman@techsingularity.net>
Fri, 20 May 2016 00:14:01 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit4fcb0971175f6037590d7b7772fe6619261d2165
tree963444f36dc778cfb4768aec404d1eb923f0982d
parent3777999dd47ec00ec34a151b1d93c0a2b721e822
mm, page_alloc: shorten the page allocator fast path

The page allocator fast path checks page multiple times unnecessarily.
This patch avoids all the slowpath checks if the first allocation
attempt succeeds.

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