]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmscan: rework compaction-ready signaling in direct reclaim
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 26 Jun 2014 00:42:41 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:41 +0000 (10:42 +1000)
commitfaa5e7192dcb5beb4678fa13a92b4f307b7f200d
tree11983d90cbae5c9a0d55df3b54f8db3a0fb443ca
parenta0783f7f15f283794643bb8d5a775cf4628cd9b9
mm: vmscan: rework compaction-ready signaling in direct reclaim

Page reclaim for a higher-order page runs until compaction is ready, then
aborts and signals this situation through the return value of
shrink_zones().  This is an oddly specific signal to encode in the return
value of shrink_zones(), though, and can be quite confusing.

Introduce sc->compaction_ready and signal the compactability of the zones
out-of-band to free up the return value of shrink_zones() for actual zone
reclaimability.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c