mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
mm/sparse: remove flags parameter from sparse_init_one_section()
The last user of the flags parameter that used to pass SECTION_IS_EARLY was removed, so let's remove the parameter. Link: https://lore.kernel.org/20260921-b4-sparsemem_cleanups-v2-11-54d81d65e125@kernel.org Signed-off-by: David Hildenbrand (Arm) <david@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Oscar Salvador <osalvador@suse.de> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Cc: Liam R. Howlett <liam@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Kairui Song <kasong@tencent.com> Cc: Qi Zheng <qi.zheng@linux.dev> Cc: Shakeel Butt <shakeel.butt@linux.dev> Cc: Barry Song <baohua@kernel.org> Cc: Axel Rasmussen <axelrasmussen@google.com> Cc: Yuanchu Xie <yuanchu@google.com> Cc: Wei Xu <weixugc@google.com> Cc: Baoquan He <baoquan.he@linux.dev> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Brendan Jackman <brendan.jackman@linux.dev> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Zi Yan <ziy@nvidia.com> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Kieran Bingham <kbingham@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
da7acb8982
commit
0632840dba
|
|
@ -908,7 +908,7 @@ int __meminit sparse_add_section(int nid, unsigned long start_pfn,
|
|||
/* Align memmap to section boundary in the subsection case */
|
||||
if (section_nr_to_pfn(section_nr) != start_pfn)
|
||||
memmap = pfn_to_page(section_nr_to_pfn(section_nr));
|
||||
sparse_init_one_section(ms, section_nr, memmap, ms->usage, 0);
|
||||
sparse_init_one_section(ms, section_nr, memmap, ms->usage);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ static void __init sparse_metadata_init_nid(int nid,
|
|||
section_nr);
|
||||
memmap_boot_pages_add(section_nr_vmemmap_pages(pfn, PAGES_PER_SECTION));
|
||||
sparse_init_one_section(__nr_to_section(section_nr), section_nr,
|
||||
mem_map, usage, 0);
|
||||
mem_map, usage);
|
||||
usage = (void *)usage + mem_section_usage_size();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ int sparse_index_init(unsigned long section_nr, int nid);
|
|||
|
||||
static inline void sparse_init_one_section(struct mem_section *ms,
|
||||
unsigned long section_nr, struct page *mem_map,
|
||||
struct mem_section_usage *usage, unsigned long flags)
|
||||
struct mem_section_usage *usage)
|
||||
{
|
||||
unsigned long coded_mem_map;
|
||||
|
||||
|
|
@ -37,8 +37,7 @@ static inline void sparse_init_one_section(struct mem_section *ms,
|
|||
VM_WARN_ON_ONCE(coded_mem_map & ~SECTION_MAP_MASK);
|
||||
|
||||
ms->section_mem_map &= ~SECTION_MAP_MASK;
|
||||
ms->section_mem_map |= coded_mem_map;
|
||||
ms->section_mem_map |= flags | SECTION_HAS_MEM_MAP;
|
||||
ms->section_mem_map |= coded_mem_map | SECTION_HAS_MEM_MAP;
|
||||
ms->usage = usage;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user