From patchwork Fri Sep 18 03:00:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Zhao X-Patchwork-Id: 11783939 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA2B8618 for ; Fri, 18 Sep 2020 03:01:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 73DF0206B6 for ; Fri, 18 Sep 2020 03:01:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="fU4u9XAv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73DF0206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6122E900007; Thu, 17 Sep 2020 23:01:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 54AD28E0001; Thu, 17 Sep 2020 23:01:17 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4126F900007; Thu, 17 Sep 2020 23:01:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id 2127E8E0001 for ; Thu, 17 Sep 2020 23:01:17 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id E46B38249980 for ; Fri, 18 Sep 2020 03:01:16 +0000 (UTC) X-FDA: 77274680952.01.cord50_260ae7c27127 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id BC66D1004BA83 for ; Fri, 18 Sep 2020 03:01:16 +0000 (UTC) X-Spam-Summary: 1,0,0,6ebcddb3a3933654,d41d8cd98f00b204,3-yjkxwykcnimin5yc4cc492.0ca96bil-aa8jy08.cf4@flex--yuzhao.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:968:973:988:989:1260:1277:1313:1314:1345:1359:1437:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3152:3352:3369:3865:3867:4250:4321:4605:5007:6261:6653:6742:8603:9010:9592:9969:10004:10400:10450:10455:11026:11473:11658:11914:12296:12297:12438:12555:12895:12986:13069:13311:13357:14093:14096:14097:14181:14394:14659:14721:19904:19999:21080:21444:21451:21627:30054:30070,0,RBL:209.85.166.201:@flex--yuzhao.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8a3spmgkoz6u565d6383con1xtyp6g5wowa3x3ep5jozmbzekryqma75ksis.9f7xgkcn5b8xppycy611m15bnyys95aehm71jcepph8ktmwbopzfsw4bp3zqexj.w-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:22,LU A_SUMMAR X-HE-Tag: cord50_260ae7c27127 X-Filterd-Recvd-Size: 4804 Received: from mail-il1-f201.google.com (mail-il1-f201.google.com [209.85.166.201]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Sep 2020 03:01:16 +0000 (UTC) Received: by mail-il1-f201.google.com with SMTP id t11so3451176ilj.10 for ; Thu, 17 Sep 2020 20:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=xN4oCimHvtKPjnmxoot3/TeH/iRIHwliUhH4EqN3ncs=; b=fU4u9XAvUyFqc0FXzkoK3nY8UyYBJi56mVd5IZCcXi/06TGZR06LJCa+NOPHM3hx5H 8Vi3W7LOmppBEorAX04u1pMD7lMDWoBkZcEincebTf9bbeQxEh8HW9PUgpnfbnIiTN68 9o3rBJyuwDc99b0fhHU1oNUDG0h0Xw75vzSSkA7/1SEM82CPXoLce4PfkqRWQAge/aP1 Rr3vbi5Ff/5NyfDZijt1PVK9pMQ3ZenSPV/g81k0fLtiRMiEN9M2k+0pcyo20SO7gWLn f1YuRnutJIYrgSOmdTnSMQMra+rHNsxOPkCkC5iCVj4JFgIYvEDVqVZbRoBajtVwrWsH Lc7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=xN4oCimHvtKPjnmxoot3/TeH/iRIHwliUhH4EqN3ncs=; b=POPrvvkSw8Plg8wrdfTktg6IdO471GPVoUTqQQHOjuOLzvtZmGvOccBb71LQeGxwbj 7YaHV+V1F2GOEjT16VKsMs894quA5NxTsxlYiNOsZ6oDEG3SSNENgOzltCcesih/HFZn ffNn25oYDy9bYZ1MEounr+qn2Cs+rMGXyScKNaE74DGAx8tZRpX5NRYoCxmID+6+dver hZYdPfwsSMoXEuf/g2YeT40AeemdzM5OoCTteuoRQGyZOA7BAOA8pE7hPSYtG9kM+Ibz REaTyov8iP5q3v78VCQ6gALpuWSsP5Jeu/epEc7DYfjZenJ3XNNwYwvpbE/JOi2OT/T7 0Lhg== X-Gm-Message-State: AOAM531lA5m+WfGmAVMyrSiY1ndpn8Gm4UE1EwsVLvWo85Xwm2CW/Evi 7LdMOTPrBrT7f+96/WGRdIeH6YrlXjQ= X-Google-Smtp-Source: ABdhPJxoASGjkRdX7gV5owKUKpPt2SzP5/4sSvfrQT5kIgM3rBNQPtBrjsZo7vBQgv022JrvE7jKBpKaBVw= X-Received: from yuzhao.bld.corp.google.com ([2620:15c:183:200:7220:84ff:fe09:2d90]) (user=yuzhao job=sendgmr) by 2002:a92:1fd9:: with SMTP id f86mr27888282ilf.250.1600398075411; Thu, 17 Sep 2020 20:01:15 -0700 (PDT) Date: Thu, 17 Sep 2020 21:00:50 -0600 In-Reply-To: <20200918030051.650890-1-yuzhao@google.com> Message-Id: <20200918030051.650890-13-yuzhao@google.com> Mime-Version: 1.0 References: <20200918030051.650890-1-yuzhao@google.com> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog Subject: [PATCH 12/13] mm: make lruvec_lru_size() static From: Yu Zhao To: Andrew Morton , Michal Hocko Cc: Alex Shi , Steven Rostedt , Ingo Molnar , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Shakeel Butt , Chris Down , Yafang Shao , Vlastimil Babka , Huang Ying , Pankaj Gupta , Matthew Wilcox , Konstantin Khlebnikov , Minchan Kim , Jaewon Kim , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yu Zhao X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: All other references to the function were removed after commit b910718a948a ("mm: vmscan: detect file thrashing at the reclaim root") This change should have no side effects. 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 8379432f4f2f..c2b1f1d363cc 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -842,8 +842,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 4688e495c242..367843296c21 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -312,7 +312,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;