]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mm: page_alloc: rearrange watermark checking in get_page_from_freelist
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 11 Sep 2013 21:20:46 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:22 +0000 (15:57 -0700)
commite085dbc52fad8d79fa2245339c84bf3ef0b3a802
treeb6793560ebcfd6e878e37dc851ff06a63926fed6
parent892f795df1eb119b560a3ee5a1ca3f385a852e84
mm: page_alloc: rearrange watermark checking in get_page_from_freelist

Allocations that do not have to respect the watermarks are rare
high-priority events.  Reorder the code such that per-zone dirty limits
and future checks important only to regular page allocations are ignored
in these extraordinary situations.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Paul Bolle <paul.bollee@gmail.com>
Tested-by: Zlatko Calusic <zcalusic@bitsync.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c