From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755741AbcCCKhW (ORCPT ); Thu, 3 Mar 2016 05:37:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:52509 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751272AbcCCKhU (ORCPT ); Thu, 3 Mar 2016 05:37:20 -0500 Subject: Re: [PATCH 01/27] mm, page_alloc: Use ac->classzone_idx instead of zone_idx(preferred_zone) To: Mel Gorman , Linux-MM References: <1456239890-20737-1-git-send-email-mgorman@techsingularity.net> <1456239890-20737-2-git-send-email-mgorman@techsingularity.net> Cc: Rik van Riel , Johannes Weiner , LKML From: Vlastimil Babka Message-ID: <56D813DD.4050605@suse.cz> Date: Thu, 3 Mar 2016 11:37:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1456239890-20737-2-git-send-email-mgorman@techsingularity.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2016 04:04 PM, Mel Gorman wrote: > ac->classzone_idx is determined by the index of the preferred zone and cached > to avoid repeated calculations. wake_all_kswapds() should use it instead of > using zone_idx() within a loop. > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka