mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
mm/bootmem_info: stop marking mem_section_usage as MIX_SECTION_INFO
We never free the ms->usage data for boot memory sections (see section_deactivate()). And to identify whether ms->usage was allocated from memblock, we simply identify it by looking at PG_reserved. Consequently, there is no need to mark ms->usage as MIX_SECTION_INFO. Let's just stop doing that. Link: https://lore.kernel.org/[email protected] Signed-off-by: David Hildenbrand (Arm) <[email protected]> Acked-by: Oscar Salvador <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Lance Yang <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: David S. Miller <[email protected]> Cc: Gerald Schaefer <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Liam R. Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Ritesh Harjani (IBM) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
1 parent
0928e9050d
commit
ae751d567b
1 file changed
+1
-11
+1
-11
@@ -38,10 +38,8 @@ void put_page_bootmem(struct page *page)
|
||||
|
||||
static void __init register_page_bootmem_info_section(unsigned long start_pfn)
|
||||
{
|
||||
unsigned long mapsize, section_nr, i;
|
||||
unsigned long section_nr;
|
||||
struct mem_section *ms;
|
||||
struct mem_section_usage *usage;
|
||||
struct page *page;
|
||||
|
||||
start_pfn = SECTION_ALIGN_DOWN(start_pfn);
|
||||
section_nr = pfn_to_section_nr(start_pfn);
|
||||
@@ -50,14 +48,6 @@ static void __init register_page_bootmem_info_section(unsigned long start_pfn)
|
||||
if (!preinited_vmemmap_section(ms))
|
||||
register_page_bootmem_memmap(section_nr, pfn_to_page(start_pfn),
|
||||
PAGES_PER_SECTION);
|
||||
|
||||
usage = ms->usage;
|
||||
page = virt_to_page(usage);
|
||||
|
||||
mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT;
|
||||
|
||||
for (i = 0; i < mapsize; i++, page++)
|
||||
get_page_bootmem(section_nr, page, MIX_SECTION_INFO);
|
||||
}
|
||||
|
||||
void __init register_page_bootmem_info_node(struct pglist_data *pgdat)
|
||||
|
||||
Reference in new issue
Block a user