On Fri, Jul 15, 2016 at 02:09:22PM +0100, Mel Gorman wrote: > As pointed out by Vlastimil, there is a redundant check in shrink_zones > since commit "mm, vmscan: avoid passing in classzone_idx unnecessarily to > compaction_ready". The zonelist iterator only returns zones that already > meet the requirements of the allocation request. > > This is a fix to the mmotm patch > mm-vmscan-avoid-passing-in-classzone_idx-unnecessarily-to-compaction_ready.patch > > Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx> Just a Nit: It seems there is another redundant check in there. shrink_zones .. for_each_zone_zonelist_nodemask(zone, z, zonelist, sc->reclaim_idx, sc->nodemask) { if (!populated_zone(zone)) <== continue; Of course, it's not your fault but it would be a good chance to remove such trivial thing :) If I don't miss something, I hope piggyback on this patch. Andrew? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>