From patchwork Fri Sep 16 07:22:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12978212 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 D6C2AC6FA82 for ; Fri, 16 Sep 2022 07:23:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E8E88000A; Fri, 16 Sep 2022 03:23:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 17D378000C; Fri, 16 Sep 2022 03:23:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E4CF980009; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id B89C68000A for ; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9BC5FA0913 for ; Fri, 16 Sep 2022 07:23:46 +0000 (UTC) X-FDA: 79917108852.20.99FDEEA Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf17.hostedemail.com (Postfix) with ESMTP id 3FFC8400A0 for ; Fri, 16 Sep 2022 07:23:44 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MTQSD5C5ZzlVkV; Fri, 16 Sep 2022 15:19:40 +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.31; Fri, 16 Sep 2022 15:23:40 +0800 From: Miaohe Lin To: , , , CC: , , , Subject: [PATCH v2 11/16] mm/page_alloc: make boot_nodestats static Date: Fri, 16 Sep 2022 15:22:52 +0800 Message-ID: <20220916072257.9639-12-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220916072257.9639-1-linmiaohe@huawei.com> References: <20220916072257.9639-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663313026; 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=iK8BMsXwXMayWAIvxsgBQTmQW4Ixe9oaf4wGNyU2anU=; b=yR5ag1FiJub0WShk3T2dWLmuAdI3rHA3NGEnMN7LwoK2aMoAA/QEzEdYOXc1fX5AgVaBa/ fZjwHtqO29FHFnQ9JsCXd1FevEp9MVhFTYsFfWZwCtp2bxXLLQ39Wuv6X8moK4ec77w+23 XpTQ32IuHu2LI1fgqWM0O9Y29h6pQmI= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663313026; a=rsa-sha256; cv=none; b=KjOWRIF64dQR6QN601HNUQJTE7qcGWEIh/VYJWtYeylKFHptSHrLyDe7eU0JV4JV0nUVE3 Tr+Mu4got9qh9tdEp/dvG8vNTIUVfYCzHR6cxnzb0W34yBcioDjWhHSi9Vxh8rocrxiEsZ 8oTwNfNKh6icA9MNmXmzUhgWFAzhoXY= Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: 6k4qwy8cqa3ge4cmdub779s6g4fziwqr X-Rspamd-Queue-Id: 3FFC8400A0 X-Rspamd-Server: rspam12 X-Rspam-User: X-HE-Tag: 1663313024-844549 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 94d8a976c2e2..b3002e03c28f 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -836,8 +836,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 83b2cb93d6fd..6bdc98c7019f 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) {