]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: vmscan: remove all_unreclaimable()
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)
commit863bd7779a15860b1dda645229ef5e4f90514412
tree29df82a89df70726e31cefe7bb1b85232c02f806
parentfaa5e7192dcb5beb4678fa13a92b4f307b7f200d
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 <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c