From patchwork Fri Sep 9 09:24:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12971379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6612EC6FA82 for ; Fri, 9 Sep 2022 09:25:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7634D8D000B; Fri, 9 Sep 2022 05:25:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4711294000E; Fri, 9 Sep 2022 05:25:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 299C494000D; Fri, 9 Sep 2022 05:25:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 08F6C94000C for ; Fri, 9 Sep 2022 05:25:34 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DD7C8120AF9 for ; Fri, 9 Sep 2022 09:25:33 +0000 (UTC) X-FDA: 79892014146.11.27A1DB0 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf12.hostedemail.com (Postfix) with ESMTP id 62C484009C for ; Fri, 9 Sep 2022 09:25:33 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MP9VC1sbRzlVql; Fri, 9 Sep 2022 17:21:39 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 17:25:30 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 11/16] mm/page_alloc: make boot_nodestats static Date: Fri, 9 Sep 2022 17:24:46 +0800 Message-ID: <20220909092451.24883-12-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220909092451.24883-1-linmiaohe@huawei.com> References: <20220909092451.24883-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662715533; a=rsa-sha256; cv=none; b=24Zw9bbloczjK9yayO+CiRRvkxVxoj8fwkQGr1wfBUyvua1zEvNEiQt2X+ijU+f+j+PRJz dbW25KWlBo5iDsF/GTrHkNXxfde8LO1gGF4udVey8/7fPHQDhM+218y9yWN3j9DLE8ssx4 oEx1JQFogaxC39O6XOcd1xVdjMfZQZc= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; spf=pass (imf12.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662715533; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BN9uf8xdaS+loBiDJjdzFGJsztRi5MlWQBfMkdnnpo4=; b=iVSUNH9zptsdKueVe697/4jKW/uZagKsBQ50C4cb6acTR4d+Jy3XNapRBnaKWhzaGUpbVj ZDpm3TnnkIABrBAx74AK3jnaaTMJvud1bNr6XGn31zFGHPeyyepAUG2k+q+zaZOFy66mwu s6mzWvPPnXdutTfPJlyO4ejW34Ufdfw= X-Stat-Signature: tgbhkg4kitz8uitqa1zrmmq9pj3bka6f X-Rspam-User: X-Rspamd-Queue-Id: 62C484009C X-Rspamd-Server: rspam07 Authentication-Results: imf12.hostedemail.com; dkim=none; spf=pass (imf12.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-HE-Tag: 1662715533-130792 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: It's only used in mm/page_alloc.c now. Make it static. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador --- mm/internal.h | 2 -- mm/page_alloc.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 2424fcde6538..43a441d35baf 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -864,8 +864,6 @@ int migrate_device_coherent_page(struct page *page); */ struct folio *try_grab_folio(struct page *page, int refs, unsigned int flags); -DECLARE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); - extern bool mirrored_kernelcore; static inline bool vma_soft_dirty_enabled(struct vm_area_struct *vma) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3417232afa45..7a8a6bb08a15 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6571,7 +6571,7 @@ static void per_cpu_pages_init(struct per_cpu_pages *pcp, struct per_cpu_zonesta #define BOOT_PAGESET_BATCH 1 static DEFINE_PER_CPU(struct per_cpu_pages, boot_pageset); static DEFINE_PER_CPU(struct per_cpu_zonestat, boot_zonestats); -DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); +static DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); static void __build_all_zonelists(void *data) {