mm, vmscan: remove redundant check in shrink_zones()
Subsystems (3)
[email protected]
maintainerPATCH 56/101 mm, vmscan: remove redundant check in shrink_zones()
From: Mel Gorman <[email protected]>
Subject: 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.
Signed-off-by Mel Gorman <[email protected]>
Suggested-by Minchan Kim <[email protected]>
Acked-by Minchan Kim <[email protected]>
Acked-by Johannes Weiner <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/vmscan.c | 3 --- 1 file changed, 3 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-remove-redundant-check-in-shrink_zones +0 -2
@@ -2605,9 +2605,6 @@ static void shrink_zones(struct zonelistfor_each_zone_zonelist_nodemask (zone, z, zonelist, sc->reclaim_idx, sc->nodemask) { -if (!populated_zone (zone)) -continue ;