forked from Minki/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>
This commit is contained in:
parent
f774a6a6fd
commit
6dc2c87a5a
@ -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)
|
||||
|
@ -6579,7 +6579,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user