mm: vmscan: remove all_unreclaimable()
authorJohannes Weiner <[email protected]>
Wed, 6 Aug 2014 23:06:15 +0000 (16:06 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:18 +0000 (18:01 -0700)
commit2344d7e44b870f9df67e505ee4e633217de752ba
tree0160199022d9231c1b84ab6f275fdd429acb0e43
parent0b06496a338e83627dc5f0d25323e7a1ae9cb87d
mm: vmscan: remove all_unreclaimable()

Direct reclaim currently calls shrink_zones() to reclaim all members of
a zonelist, and if that wasn't successful it does another pass through
the same zonelist to check overall reclaimability.

Just check reclaimability in shrink_zones() directly and propagate the
result through the return value.  Then remove all_unreclaimable().

Signed-off-by: Johannes Weiner <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c