Skip to content

Commit 22fecdf

Browse files
gormanmtorvalds
authored andcommitted
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/[email protected] 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]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7ee36a1 commit 22fecdf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mm/vmscan.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,9 +2605,6 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc)
26052605

26062606
for_each_zone_zonelist_nodemask(zone, z, zonelist,
26072607
sc->reclaim_idx, sc->nodemask) {
2608-
if (!populated_zone(zone))
2609-
continue;
2610-
26112608
/*
26122609
* Take care memory controller reclaiming has small influence
26132610
* to global LRU.

0 commit comments

Comments
 (0)