From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751164AbdAQDk4 (ORCPT ); Mon, 16 Jan 2017 22:40:56 -0500 Received: from out0-150.mail.aliyun.com ([140.205.0.150]:51235 "EHLO out0-150.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbdAQDkz (ORCPT ); Mon, 16 Jan 2017 22:40:55 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R421e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03293;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---.7Sk-YCV_1484624425; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Michal Hocko'" , "'Johannes Weiner'" Cc: "'Minchan Kim'" , "'Mel Gorman'" , , "'LKML'" , "'Michal Hocko'" References: <20170116160123.GB30300@cmpxchg.org> <20170116193317.20390-1-mhocko@kernel.org> In-Reply-To: <20170116193317.20390-1-mhocko@kernel.org> Subject: Re: [PATCH 1/3] mm, vmscan: cleanup lru size claculations Date: Tue, 17 Jan 2017 11:40:25 +0800 Message-ID: <033b01d27073$70e0db20$52a29160$@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: AQMPtJ1U7bkG0NI7kTfQ6eSfedre8AHOwZNfnrMGO5A= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, January 17, 2017 3:33 AM Michal Hocko wrote: > > From: Michal Hocko > > lruvec_lru_size returns the full size of the LRU list while we sometimes > need a value reduced only to eligible zones (e.g. for lowmem requests). > inactive_list_is_low is one such user. Later patches will add more of > them. Add a new parameter to lruvec_lru_size and allow it filter out > zones which are not eligible for the given context. > > Acked-by: Johannes Weiner > Signed-off-by: Michal Hocko > --- Acked-by: Hillf Danton