From: Mel Gorman Date: Thu, 28 Jul 2016 22:47:20 +0000 (-0700) Subject: mm, vmscan: remove redundant check in shrink_zones() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22fecdf5e1702a7724d7cd8697212307e25f571c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm, vmscan: remove redundant check in shrink_zones() As pointed out by Minchan Kim, shrink_zones() checks for populated zones in a zonelist but a zonelist can never contain unpopulated zones. While it's not related to the node-lru series, it can be cleaned up now. Link: http://lkml.kernel.org/r/1468853426-12858-2-git-send-email-mgorman@techsingularity.net Signed-off-by: Mel Gorman Suggested-by: Minchan Kim Acked-by: Minchan Kim Acked-by: Johannes Weiner Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index b3f5b359280d..4978ee9b5892 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2605,9 +2605,6 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc) for_each_zone_zonelist_nodemask(zone, z, zonelist, sc->reclaim_idx, sc->nodemask) { - if (!populated_zone(zone)) - continue; - /* * Take care memory controller reclaiming has small influence * to global LRU.