Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3025626pxu; Tue, 8 Dec 2020 01:12:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf0CoTyIuCtuQcgzUInqYr9rWQ3kNmNzXk21iS8MkbxsCXmvuY0kJ128+D4VNSNH8XgKRu X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr23301188edb.51.1607418742917; Tue, 08 Dec 2020 01:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607418742; cv=none; d=google.com; s=arc-20160816; b=ywI/rk61cJYoWOI+ShFnHQhvK1KEVQl1TnEfPpTdi7VnTr/hJozwD1lAC2DXP5+xqU zbWhvVsGfcyWHVthSaDbLt/LUIcNhbR7pNCjfTPtYX8VSSuMJn1XTtgNEDbtYbSnMtf1 RVHBU8YPq2tFrjmje8KVEasR7ce1vopJgnxJjnCyzT1g/ljvNrpR7hEggJgMLQ5SZUzt njqf3CHQ6HXnVKbKgaoQqhelv40xGm6nQRp15nd2WAoRyer9ynDwN9+RtNOreLJ6MK4B KjrbIc4csE7oyU6SJKzbQ0CgMWqUKjRVzFUbcQgtcIKC114aG2PgWU8RJZYPoDRy9LnR 5unw== 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=0GDWTwGJ5PvOUNDr8Ij78IO0WXXWfSWheIR7NqrFRCo=; b=UX0kbdPfvuilznmIGMbH2F8l+xe1sUDLi/30XC5oL0NXkDznr8mOGbjLXrITrHEXQE Qy8V2ov30KDty0kB8/LuVm1Sf6G6pgIRlf+bBjd9ySP5IWCroFuV500q1tzVohciHa2h oee4Z4x5vI7yQEjh6kI9Kr0Ii50toBd6dTM89ke54wLICF+xIsor6Api0/9YlSDLa8A+ MLSev19FqGtEsMV41WbSxFmddgPUIEsn2wdBpBF+6WvPRO110r0JDAnVsLmslK3XfwuP pOlZO8FtAUSaxCYjPkaX2J38MR18ShdYAT6QHm2qQtM9nlEilZxCDyTBPcQN3PaIJNPD x4lA== 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 88si9781222edr.151.2020.12.08.01.12.00; Tue, 08 Dec 2020 01:12:22 -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 S1728669AbgLHJIn (ORCPT + 99 others); Tue, 8 Dec 2020 04:08:43 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:19840 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbgLHJIm (ORCPT ); Tue, 8 Dec 2020 04:08:42 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UHyFft1_1607418468; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UHyFft1_1607418468) by smtp.aliyun-inc.com(127.0.0.1); Tue, 08 Dec 2020 17:07:49 +0800 Subject: Re: [PATCH 09/11] mm: fold __update_lru_size() into its sole caller 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-10-yuzhao@google.com> From: Alex Shi Message-ID: Date: Tue, 8 Dec 2020 17:07:48 +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-10-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 a892cb6b977f ("mm/vmscan.c: use update_lru_size() in update_lru_sizes()") > > Signed-off-by: Yu Zhao > --- > include/linux/mm_inline.h | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h > index 7183c7a03f09..355ea1ee32bd 100644 > --- a/include/linux/mm_inline.h > +++ b/include/linux/mm_inline.h > @@ -24,7 +24,7 @@ static inline int page_is_file_lru(struct page *page) > return !PageSwapBacked(page); > } > > -static __always_inline void __update_lru_size(struct lruvec *lruvec, > +static __always_inline void update_lru_size(struct lruvec *lruvec, > enum lru_list lru, enum zone_type zid, > int nr_pages) > { > @@ -33,13 +33,6 @@ static __always_inline void __update_lru_size(struct lruvec *lruvec, > __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); > __mod_zone_page_state(&pgdat->node_zones[zid], > NR_ZONE_LRU_BASE + lru, nr_pages); > -} > - > -static __always_inline void update_lru_size(struct lruvec *lruvec, > - enum lru_list lru, enum zone_type zid, > - int nr_pages) > -{ > - __update_lru_size(lruvec, lru, zid, nr_pages); > #ifdef CONFIG_MEMCG > mem_cgroup_update_lru_size(lruvec, lru, zid, nr_pages); > #endif >