Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3025249pxu; Tue, 8 Dec 2020 01:11:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlkwyA1xbHbkHfCDFs/gJP95nPjnCGXBcMfozl7jqJVA3OEf8XlnxPXCfPzk2182sKmt6f X-Received: by 2002:a05:6402:312c:: with SMTP id dd12mr24127652edb.327.1607418699428; Tue, 08 Dec 2020 01:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607418699; cv=none; d=google.com; s=arc-20160816; b=G533DpTXWFX6FUMyOxNiQYIYxyfhLEWIWHyNgVe+0oSNaLORmVinpUs8m6cOr44xiG 9+dvSTjagqZWsWxZJHR4ks1ilJIv+BHg8tCJYTxtp7eFVARCt8x8V0yt3oaDuNmMJ4d0 vDigGQQXz9ZQnCvar7RMZenSwn3MbNj6LllSuvT1ZDJUxUPDpxzKh0AuXBCzRoi2678y hreYYYcu6bpfm0PnxXl8n6HRz07qBPlrCrRFG/OX5MqdED2U6j3EvKudMR/U0TFf+jyv tgPj4TwOWQCo2Zft3JdAqZyGFxeIc5obUIL+0VLzIEueNQMcyE51NxvtqXJyaoNYoBqi oVkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=2qc+YxDw7gjQW8SM6Zfg+VPYIojy0UvFLu8ouRS0p/U=; b=kZogVdlZ8vyXzudIvZNwVpP0KH/TyPvLaIQYM5i8DxZ9ajyK4/0B+LNpV/jWWzLd8K ExN/zNXnWmueZhS15ZrpNzoZlTjKs9LOy2LcC1ruqlTbJfY6QFqATci6tvlrx2NlLPjT GIHJmn29WVqifB84f4s4d9MQD2ExxkAMxHIL9ti1QmeyL1BOkmcJzJOFHehCwA1Qz3Rk h0SyDN+foySqxD2NWqeTHHmyn12y+sChQBDmG7h1ENmrF85LAB44h3AzxjLBgmJM3jqj 7EckZ2kpXfo931ZT/pYZ23zyasKEy38H4aFcKEDzB+djcKQUdfT764N/zqWgiYClstqM JQeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb26si9692230edb.382.2020.12.08.01.11.16; Tue, 08 Dec 2020 01:11:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgLHJJ6 (ORCPT + 99 others); Tue, 8 Dec 2020 04:09:58 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:41130 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728562AbgLHJJ6 (ORCPT ); Tue, 8 Dec 2020 04:09:58 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UHyyIaT_1607418552; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UHyyIaT_1607418552) by smtp.aliyun-inc.com(127.0.0.1); Tue, 08 Dec 2020 17:09:13 +0800 Subject: Re: [PATCH 10/11] mm: make lruvec_lru_size() static To: Yu Zhao , Andrew Morton , Hugh Dickins Cc: Michal Hocko , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20201207220949.830352-1-yuzhao@google.com> <20201207220949.830352-11-yuzhao@google.com> From: Alex Shi Message-ID: <10396c35-9e42-b3a0-0183-490e10e6ad0c@linux.alibaba.com> Date: Tue, 8 Dec 2020 17:09:12 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201207220949.830352-11-yuzhao@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Alex Shi 在 2020/12/8 上午6:09, Yu Zhao 写道: > All other references to the function were removed after > commit b910718a948a ("mm: vmscan: detect file thrashing at the reclaim root") > > Signed-off-by: Yu Zhao > --- > include/linux/mmzone.h | 2 -- > mm/vmscan.c | 3 ++- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index b593316bff3d..2fc54e269eaf 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -872,8 +872,6 @@ static inline struct pglist_data *lruvec_pgdat(struct lruvec *lruvec) > #endif > } > > -extern unsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx); > - > #ifdef CONFIG_HAVE_MEMORYLESS_NODES > int local_memory_node(int node_id); > #else > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 95e581c9d9af..fd0c2313bee4 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -310,7 +310,8 @@ unsigned long zone_reclaimable_pages(struct zone *zone) > * @lru: lru to use > * @zone_idx: zones to consider (use MAX_NR_ZONES for the whole LRU list) > */ > -unsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx) > +static unsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, > + int zone_idx) > { > unsigned long size = 0; > int zid; >