From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932782AbcGEHKu (ORCPT ); Tue, 5 Jul 2016 03:10:50 -0400 Received: from out4133-98.mail.aliyun.com ([42.120.133.98]:21447 "EHLO out4133-98.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754687AbcGEHKt (ORCPT ); Tue, 5 Jul 2016 03:10:49 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R291e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03301;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_----5-U6tSJ_1467702608; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "Mel Gorman" Cc: "linux-kernel" , , "Andrew Morton" References: <00e901d1d68b$fbfc9e10$f3f5da30$@alibaba-inc.com> In-Reply-To: <00e901d1d68b$fbfc9e10$f3f5da30$@alibaba-inc.com> Subject: Re: [PATCH 24/31] mm, vmscan: Avoid passing in classzone_idx unnecessarily to compaction_ready Date: Tue, 05 Jul 2016 15:10:08 +0800 Message-ID: <00ea01d1d68c$43d25b80$cb771280$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQL4RPX1qWYOR1NSqmSJYc6m0zKs/Z28jhGg Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > The scan_control structure has enough information available for > compaction_ready() to make a decision. The classzone_idx manipulations in > shrink_zones() are no longer necessary as the highest populated zone is > no longer used to determine if shrink_slab should be called or not. > > Signed-off-by: Mel Gorman > --- Acked-by: Hillf Danton > mm/vmscan.c | 28 ++++++++-------------------- > 1 file changed, 8 insertions(+), 20 deletions(-) >