Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/page_alloc: make boot_nodestats static

It's only used in mm/page_alloc.c now. Make it static.

Link: https://lkml.kernel.org/r/20220916072257.9639-12-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Miaohe Lin and committed by
Andrew Morton
6dc2c87a f774a6a6

+1 -3
-2
mm/internal.h
··· 836 836 */ 837 837 struct folio *try_grab_folio(struct page *page, int refs, unsigned int flags); 838 838 839 - DECLARE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); 840 - 841 839 extern bool mirrored_kernelcore; 842 840 843 841 static inline bool vma_soft_dirty_enabled(struct vm_area_struct *vma)
+1 -1
mm/page_alloc.c
··· 6579 6579 #define BOOT_PAGESET_BATCH 1 6580 6580 static DEFINE_PER_CPU(struct per_cpu_pages, boot_pageset); 6581 6581 static DEFINE_PER_CPU(struct per_cpu_zonestat, boot_zonestats); 6582 - DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); 6582 + static DEFINE_PER_CPU(struct per_cpu_nodestat, boot_nodestats); 6583 6583 6584 6584 static void __build_all_zonelists(void *data) 6585 6585 {