mm-sparse-vmemmap-open-code-init_compound_tail.patch removed from -mm tree
The quilt patch titled
Subject: mm/sparse-vmemmap: open-code init_compound_tail()
has been removed from the -mm tree. Its filename was
mm-sparse-vmemmap-open-code-init_compound_tail.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Muchun Song <[email protected]>
Subject: mm/sparse-vmemmap: open-code init_compound_tail()
Date: Wed, 30 Sep 2026 22:06:19 +0800
init_compound_tail() is only used by vmemmap_shared_tail_page(), where the shared tail page setup intentionally passes NULL as the compound head.
Keeping this helper in mm/internal.h exposes that special case to the rest of the MM code and can make the NULL head argument look generally valid. Open-code the initialization at the only call site so the special-case use stays local to sparse vmemmap optimization.
No functional change intended.
---
mm/internal.h | 9 --------- mm/sparse-vmemmap.c | 5 ++++- 2 files changed, 4 insertions(+), 10 deletions(-)
mm/internal.h renamed from mm/internal.h~mm-sparse-vmemmap-open-code-init_compound_tail +0 -9
@@ -786,15 +786,6 @@ static inline void prep_compound_tail(stVM_WARN_ON_ONCE (tail->private); } -static inline void init_compound_tail (struct page *tail, -const struct page *head,unsigned int order,struct zone *zone) -{ -atomic_set (&tail->_mapcount,-1 ); -set_page_node (tail,zone_to_nid (zone)); -set_page_zone (tail,zone_idx (zone)); -prep_compound_tail (tail, head, order); -} -#if definedCONFIG_COMPACTION || definedCONFIG_CMA /*
mm/sparse-vmemmap.c renamed from mm/sparse-vmemmap.c~mm-sparse-vmemmap-open-code-init_compound_tail +4 -1
@@ -221,7 +221,10 @@ struct page __ref *vmemmap_shared_tail_pfor (int i =0 ; i <PAGE_SIZE /sizeof (struct page ); i++) { page = (struct page *)addr + i;mm_zero_struct_page (page); -init_compound_tail (page,NULL , order, zone); +atomic_set (&page->_mapcount,-1 ); +set_page_node (page,zone_to_nid (zone)); +set_page_zone (page,zone_idx (zone)); +prep_compound_tail (page,NULL , order); } page =virt_to_page (addr);
_
Patches currently in -mm which might be from [email protected] are
mm-sparse-vmemmap-drop-vmemmap_populate_dax.patch mm-sparse-vmemmap-support-device-dax-in-common-vmemmap-path.patch mm-sparse-vmemmap-drop-device-dax-specific-population-path.patch mm-sparse-vmemmap-remove-the-unused-ptpfn-argument.patch mm-sparse-vmemmap-open-code-vmemmap_populate_address.patch mm-mm_init-add-zone-mismatch-warning-during-page-init.patch