From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbcGOPu6 (ORCPT ); Fri, 15 Jul 2016 11:50:58 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:36413 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbcGOPu4 (ORCPT ); Fri, 15 Jul 2016 11:50:56 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 165.244.98.203 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Sat, 16 Jul 2016 00:50:53 +0900 From: Minchan Kim To: Mel Gorman CC: Andrew Morton , Johannes Weiner , Vlastimil Babka , Linux-MM , LKML Subject: Re: [PATCH 2/5] mm, vmscan: avoid passing in classzone_idx unnecessarily to compaction_ready -fix Message-ID: <20160715155053.GC8644@bbox> References: <1468588165-12461-1-git-send-email-mgorman@techsingularity.net> <1468588165-12461-3-git-send-email-mgorman@techsingularity.net> MIME-Version: 1.0 In-Reply-To: <1468588165-12461-3-git-send-email-mgorman@techsingularity.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB06/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/07/16 00:50:54, Serialize by Router on LGEKRMHUB06/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2016/07/16 00:50:54, Serialize complete at 2016/07/16 00:50:54 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Minchan Kim 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?