Skip to contentSkip to conversation

mm:vmscan: clean up classzone_idx

PATCH In review Minchan Kim 2 participants 2 messages Apr 3, 2016 – Apr 4, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm:vmscan: clean up classzone_idx

[1] removed classzone_idx so we don't need code related to it. This patch cleans it up.

[1] mm, oom: rework oom detection

Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
---
 mm/vmscan.c | 8 --------
 1 file changed, 8 deletions(-)
mm/vmscan.c +0 -8
index d84efa03c8a8..6e67de2a61ed 100644
@@ -2551,16 +2551,8 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc)
 
 	for_each_zone_zonelist_nodemask(zone, z, zonelist,
 					gfp_zone(sc->gfp_mask), sc->nodemask) {
-		enum zone_type classzone_idx;
-
 		if (!populated_zone(zone))
 			continue;
-
-		classzone_idx = requested_highidx;
-		while (!populated_zone(zone->zone_pgdat->node_zones +
-							classzone_idx))
-			classzone_idx--;
-
 		/*
 		 * Take care memory controller reclaiming has small influence
 		 * to global LRU.
Signature · 1 line
1.9.1
reviewer
#1 lore raw
Quoted 4 lines · Minchan Kim

[1] removed classzone_idx so we don't need code related to it. This patch cleans it up.

[1] mm, oom: rework oom detection

As per http://lkml.kernel.org/r/[email protected]
the removal of classzone_idx was unintentional and wrong.

Quoted 32 lines
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
---
 mm/vmscan.c | 8 --------
 1 file changed, 8 deletions(-)
mm/vmscan.c +0 -8
index d84efa03c8a8..6e67de2a61ed 100644
@@ -2551,16 +2551,8 @@ static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc)
 
 	for_each_zone_zonelist_nodemask(zone, z, zonelist,
 					gfp_zone(sc->gfp_mask), sc->nodemask) {
-		enum zone_type classzone_idx;
-
 		if (!populated_zone(zone))
 			continue;
-
-		classzone_idx = requested_highidx;
-		while (!populated_zone(zone->zone_pgdat->node_zones +
-							classzone_idx))
-			classzone_idx--;
-
 		/*
 		 * Take care memory controller reclaiming has small influence
 		 * to global LRU.
Signature · 1 line
1.9.1
Signature · 8 lines
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>