mm: Track vmemmap optimization state in shared backing pages
Subsystems (6)
v2 cover mm: Track vmemmap optimization state in shared backing pages
Folio-based vmemmap optimization currently requires HugeTLB to maintain HPG_vmemmap_optimized separately from the vmemmap mapping. The runtime update is counterintuitive: when TLB flushing is deferred, the flag must be set before remapping so that it is copied to the replacement head page, then cleared if optimization fails. Boot-time HugeTLB setup also needs an explicit transfer from section metadata into the flag.
The same representation is useful to future shared-vmemmap users [1]. The FS-DAX prototype currently determines whether a metadata page still uses shared backing by looking up its vmemmap PTE and comparing the mapped backing page with the shared template. A future revision can instead test the common flag directly through the vmemmap address, avoiding page-table identity as the state representation for shared metadata.
Reuse PG_owner_priv_1 in the first struct page slot of each shared backing page, and provide folio_vmemmap_optimized() as the common query. Patch 1 moves MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h, which lets vmemmap-optimization.h include linux/mm.h. Patch 2 introduces the generic state representation and query. Patch 3 switches HugeTLB to it and removes the private flag and its explicit state updates.
[1] https://lore.kernel.org/[email protected]/
[2] https://lore.kernel.org/[email protected]/
v2:
- Patch 1 is new. It moves MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h and drops the LoongArch include of vmemmap-optimization.h, fixing the circular include that broke the LoongArch build (reported by sashiko-bot and kernel test robot)
- Patch 2: Move PG_vmemmap_optimized to PG_owner_priv_1, since PG_owner_2 aliases PG_anon_exclusive on THP tail pages (reported by sashiko-bot)
- Patch 2: Document that folio_vmemmap_optimized() returns true only after the TLB flush has completed (suggested by sashiko-bot)
- Patch 3: No change. The race between folio_vmemmap_optimized() and vmemmap_restore_folio() reported by sashiko-bot is fixed by [2].
v1: https://lore.kernel.org/[email protected]/
Muchun Song (3):
mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h mm/vmemmap-optimization: track optimization state in shared vmemmap
pages
mm/hugetlb_vmemmap: remove HPG_vmemmap_optimized
arch/loongarch/include/asm/pgtable.h | 1 - include/linux/hugetlb.h | 3 -- include/linux/mmzone.h | 2 ++ include/linux/page-flags.h | 6 ++++ include/linux/vmemmap-optimization.h | 21 +++++++------ mm/hugetlb.c | 15 ++++----- mm/hugetlb_vmemmap.c | 47 ++++++---------------------- mm/memory-failure.c | 4 +-- mm/sparse-vmemmap.c | 1 + 9 files changed, 38 insertions(+), 62 deletions(-)
base-commit: 6855c02e7d65a8539dc3f8a24946c1ff9bd81361
Signature · 1 line
2.54.0
PATCH v2 1/3 mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
MAX_FOLIO_VMEMMAP_ALIGN is required by the mask-encoded compound_info, not by vmemmap optimization. compound_head() derives the head page from a tail page address by masking, which only works if the struct pages of every folio are naturally aligned with the folio size. The macro nevertheless lives in vmemmap-optimization.h and is gated on vmemmap_optimization_supported(), which is equivalent to compound_info_has_mask() today.
Move it next to MAX_FOLIO_NR_PAGES in mmzone.h, which it is derived from, and gate it on compound_info_has_mask().
LoongArch's asm/pgtable.h includes vmemmap-optimization.h only for this macro. Drop the include as well, so that the next patch can include linux/mm.h from vmemmap-optimization.h without creating a circular
include: asm/pgtable.h is reached from linux/mm.h through linux/pgtable.h.
---
v2:
- New patch
--- arch/loongarch/include/asm/pgtable.h | 1 - include/linux/mmzone.h | 2 ++ include/linux/vmemmap-optimization.h | 9 --------- 3 files changed, 2 insertions(+), 10 deletions(-)
arch/loongarch/include/asm/pgtable.h +0 -1
@@ -72,7 +72,6 @@#include <linux/mm_types.h> #include <linux/mmzone.h> -#include <linux/vmemmap-optimization.h> #include <asm/fixmap.h> #include <asm/sparsemem.h>
include/linux/mmzone.h +2 -0
@@ -95,6 +95,8 @@#endif #define MAX_FOLIO_NR_PAGES (1UL << MAX_FOLIO_ORDER) +#define MAX_FOLIO_VMEMMAP_ALIGN \ + (compound_info_has_mask() ? MAX_FOLIO_NR_PAGES * sizeof(struct page) : 0)enum migratetype {MIGRATE_UNMOVABLE ,
include/linux/vmemmap-optimization.h +0 -9
@@ -14,15 +14,6 @@#include <linux/mmdebug.h> #include <linux/mmzone.h> -/* -* HugeTLB Vmemmap Optimization (HVO) requires struct pages of the head page to -* be naturally aligned with regard to the folio size. -* -* HVO which is only active if the size of struct page is a power of 2. -*/ -#define MAX_FOLIO_VMEMMAP_ALIGN \ - (vmemmap_optimization_supported() ? MAX_FOLIO_NR_PAGES * sizeof(struct page) : 0) -/* The number of retained vmemmap pages with HVO enabled. */ #define VMEMMAP_OPTIMIZATION_PAGES 1#define VMEMMAP_OPTIMIZATION_SIZE (VMEMMAP_OPTIMIZATION_PAGES * PAGE_SIZE)
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v2 1/3] mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] mm: unused vmemmap-optimization.h include remains in arch/riscv/mm/init.c --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] mm: unused vmemmap-optimization.h include remains in arch/riscv/mm/init.c
--
commit 777766be15729c82e8bc1a4cd01cf53ddb061517
Author: Muchun Song <[email protected]>
mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
This commit moves MAX_FOLIO_VMEMMAP_ALIGN from vmemmap-optimization.h to mmzone.h, gates it on compound_info_has_mask(), and drops the vmemmap-optimization.h include from arch/loongarch/include/asm/pgtable.h.
arch/loongarch/include/asm/pgtable.h line 76
Quoted 11 lines
arch/loongarch/include/asm/pgtable.h +0
-1@@ -72,7 +72,6 @@#include <linux/mm_types.h> #include <linux/mmzone.h> -#include <linux/vmemmap-optimization.h> #include <asm/fixmap.h> #include <asm/sparsemem.h>
[Severity: Low]
Should #include <linux/vmemmap-optimization.h> also be dropped from arch/riscv/mm/init.c?
Commit d3a699634c2a ("mm/sparse-vmemmap: move vmemmap optimization helpers to a public header") added it solely for MAX_FOLIO_VMEMMAP_ALIGN in VMEMMAP_ADDR_ALIGN. No other symbol from vmemmap-optimization.h is used there, and linux/mmzone.h is already included via linux/mm.h.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Muchun Song
maintainerRe: [PATCH v2 1/3] mm: move MAX_FOLIO_VMEMMAP_ALIGN to mmzone.h
Quoted 25 lines · On Dec 6, 2026, at 16:35, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] mm: unusedvmemmap-optimization.hinclude remains inarch/riscv/mm/init.c
--commit
777766be15729c82e8bc1a4cd01cf53ddb061517
Author: Muchun Song <[email protected]>mm: move
MAX_FOLIO_VMEMMAP_ALIGNtommzone.hThis commit moves
MAX_FOLIO_VMEMMAP_ALIGNfromvmemmap-optimization.htommzone.h, gates it oncompound_info_has_mask(), and drops thevmemmap-optimization.hinclude fromarch/loongarch/include/asm/pgtable.h.Quoted 6 lines
arch/loongarch/include/asm/pgtable.h +0
-0@@ -72,7 +72,6 @@
Quoted 9 lines
arch/loongarch/include/asm/pgtable.h line 76
Quoted 5 lines
arch/loongarch/include/asm/pgtable.h +0
-1#include <linux/mm_types.h> #include <linux/mmzone.h> -#include <linux/vmemmap-optimization.h> #include <asm/fixmap.h> #include <asm/sparsemem.h> [Severity: Low]
Should #include <linux/vmemmap-optimization.h> also be dropped fromarch/riscv/mm/init.c?
Yep, a good point of cleanup.
Quoted 8 lines
Commit
d3a699634c2a("mm/sparse-vmemmap: move vmemmap optimization helpers to a public header") added it solely forMAX_FOLIO_VMEMMAP_ALIGNinVMEMMAP_ADDR_ALIGN. No other symbol fromvmemmap-optimization.his used there, andlinux/mmzone.his already included vialinux/mm.h.Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH v2 2/3 mm/vmemmap-optimization: track optimization state in shared vmemmap pages
In reply to Muchun SongUpdating HPG_vmemmap_optimized in __hugetlb_vmemmap_optimize_folio() is subtle and counterintuitive. The flag cannot simply be set after optimization succeeds. When TLB flushing is deferred, accesses can continue using the old head page after remapping. The flag must therefore be set before remapping so that it is copied to the replacement head page, then cleared if optimization fails. This couples the flag update to vmemmap remapping and TLB behavior.
A separate state transfer is required in gather_bootmem_prealloc_node(), which derives the optimization state from section metadata and copies it into HPG_vmemmap_optimized before the section state is cleared. This extra action is needed only to keep the two representations synchronized.
Reuse PG_owner_priv_1 in the first struct page slot of each shared backing page to record the optimization state, and provide folio_vmemmap_optimized() as the common query. This lets consumers determine the state from the folio's vmemmap instead of maintaining and transferring a separate copy.
---
v2:
- Move PG_vmemmap_optimized to PG_owner_priv_1, since PG_owner_2 aliases PG_anon_exclusive on THP tail pages (reported by sashiko-bot)
- Document that folio_vmemmap_optimized() returns true only after the TLB flush has completed (suggested by sashiko-bot)
--- include/linux/page-flags.h | 6 ++++++ include/linux/vmemmap-optimization.h | 12 +++++++++++- mm/hugetlb_vmemmap.c | 4 +++- mm/sparse-vmemmap.c | 1 + 4 files changed, 21 insertions(+), 2 deletions(-)
include/linux/page-flags.h +6 -0
@@ -132,6 +132,9 @@ enum pageflags {/* Some filesystems */ PG_checked = PG_owner_priv_1, +/* Set on the first struct page in a shared vmemmap backing page. */ + PG_vmemmap_optimized = PG_owner_priv_1, +/* * Depending on the way an anonymous folio can be mapped into a page * table (e.g., single PMD/PUD/CONT of the head page vs. PTE-mapped
@@ -692,6 +695,9 @@ PAGEFLAG(VmemmapSelfHosted, vmemmap_self_hosted, PF_ANY) PAGEFLAG_FALSE(VmemmapSelfHosted, vmemmap_self_hosted)#endif +/* Only test this flag through folio_vmemmap_optimized(). */ +PAGEFLAG (VmemmapOptimized, vmemmap_optimized,PF_ANY ) +/* * On an anonymous folio mapped into a user virtual memory area, * folio->mapping points to its anon_vma, not to a struct address_space;
include/linux/vmemmap-optimization.h +11 -1
@@ -11,8 +11,8 @@#include <linux/align.h> #include <linux/log2.h> +#include <linux/mm.h> #include <linux/mmdebug.h> -#include <linux/mmzone.h> /* The number of retained vmemmap pages with HVO enabled. */ #define VMEMMAP_OPTIMIZATION_PAGES 1
@@ -106,4 +106,14 @@ static inline bool vmemmap_optimizable_pfn(unsigned long pfn, unsigned int order return (pfn & (nr_pages - 1)) >= VMEMMAP_OPTIMIZATION_NR_STRUCT_PAGES; } + +static inline bool folio_vmemmap_optimized (const struct folio *folio) +{ +const struct page *page =folio_page (folio,VMEMMAP_OPTIMIZATION_NR_STRUCT_PAGES ); + +if (!vmemmap_optimizable_order (folio_order (folio))) +return false; + +return PageVmemmapOptimized (page); +}#endif /* _LINUX_VMEMMAP_OPTIMIZATION_H */
mm/hugetlb_vmemmap.c +3 -1
@@ -216,6 +216,7 @@ static struct page *vmemmap_dup_page_from_list(const struct page *src,list_del (&dst->lru);copy_page (page_address (dst),page_address (src)); +ClearPageVmemmapOptimized (page_address (dst));/* Ensure updates to @dst page are visible before set_pte_at(). */ smp_wmb ();
@@ -331,7 +332,8 @@ static int vmemmap_pteify_folio(const struct folio *folio, unsigned long flags)* Note: The caller must hold vmemmap_remap_rwsem. If TLB flushing is deferred, * the lock must remain held until the final TLB flush. * -* Return: %0 on success, negative error code otherwise. +* Return: %0 on success, with folio_vmemmap_optimized(@folio) returning true +* once the TLB flush has completed, or a negative error code otherwise. */ static int vmemmap_optimize_folio (const struct folio *folio,struct list_head *vmemmap_pages,unsigned long flags)
mm/sparse-vmemmap.c +1 -0
@@ -215,6 +215,7 @@ struct page __ref *vmemmap_shared_tail_page(unsigned int order, struct zone *zonmemmap_init_page (page,zone_idx (zone),zone_to_nid (zone));prep_compound_tail (page,NULL , order); } +SetPageVmemmapOptimized ((struct page *)addr); page =virt_to_page (addr);if (cmpxchg (&pages[idx],NULL , page) !=NULL ) {
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH v2 2/3] mm/vmemmap-optimization: track optimization state in shared vmemmap pages
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] mm: PAGEFLAG(VmemmapOptimized) exposes broken folio_*_vmemmap_optimized() --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] mm: PAGEFLAG(VmemmapOptimized) exposes broken folio_*_vmemmap_optimized()
--
commit c7681d6be3397bd678ceb2f8b16aa0dc4585ed33
Author: Muchun Song <[email protected]>
mm/vmemmap-optimization: track optimization state in shared vmemmap pages
This commit records vmemmap optimization state in PG_owner_priv_1 on the first struct page of each shared tail vmemmap backing page and adds folio_vmemmap_optimized() to query it.
Quoted 4 lines
include/linux/page-flags.h +0
-0
[ ... ]
include/linux/page-flags.h PAGEFLAG(VmemmapSelfHosted, vmemmap_self_hosted, PF_ANY) · line 699
Quoted 6 lines
include/linux/page-flags.h +2
-0@@ -692,6 +695,9 @@ PAGEFLAG(VmemmapSelfHosted, vmemmap_self_hosted, PF_ANY) PAGEFLAG_FALSE(VmemmapSelfHosted, vmemmap_self_hosted)#endif +/* Only test this flag through folio_vmemmap_optimized(). */ +PAGEFLAG (VmemmapOptimized, vmemmap_optimized,PF_ANY )
[Severity: Low]
Should PAGEFLAG() be avoided here so folio_test_vmemmap_optimized(), folio_set_vmemmap_optimized(), and folio_clear_vmemmap_optimized() are not exposed?
PAGEFLAG() with PF_ANY generates those folio_* helpers targeting page index 0 (the head page), where PG_vmemmap_optimized aliases PG_owner_priv_1 and is never set for vmemmap optimization.
Any caller using folio_test_vmemmap_optimized() will silently get wrong results (false on optimized folios and true on swapcache or checked folios), and the set/clear helpers will corrupt PG_owner_priv_1 on the head page.
Defining page-only inline helpers (like PageAnonExclusive()) or keeping the bit manipulation internal to the vmemmap-optimization helpers would avoid exposing these broken folio_* helpers.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Muchun Song
maintainerRe: [PATCH v2 2/3] mm/vmemmap-optimization: track optimization state in shared vmemmap pages
Quoted 30 lines · On Dec 6, 2026, at 16:35, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] mm: PAGEFLAG(VmemmapOptimized) exposes broken folio_*_vmemmap_optimized()
--commit
c7681d6be3397bd678ceb2f8b16aa0dc4585ed33
Author: Muchun Song <[email protected]>
mm/vmemmap-optimization: track optimization state in shared vmemmap pagesThis commit records vmemmap optimization state in
PG_owner_priv_1on the first struct page of each shared tail vmemmap backing page and addsfolio_vmemmap_optimized()to query it.Quoted 4 lines
include/linux/page-flags.h +0
-0[ ... ]
Quoted 4 lines
include/linux/page-flags.h +0
-0@@ -692,6 +695,9 @@ PAGEFLAG(VmemmapSelfHosted, vmemmap_self_hosted, PF_ANY) PAGEFLAG_FALSE(VmemmapSelfHosted, vmemmap_self_hosted)#endif
Quoted 7 lines
include/linux/page-flags.h PAGEFLAG(VmemmapSelfHosted, vmemmap_self_hosted, PF_ANY) · line 699
Quoted 2 lines
include/linux/page-flags.h +2
-0+/* Only test this flag through folio_vmemmap_optimized(). */ +PAGEFLAG (VmemmapOptimized, vmemmap_optimized,PF_ANY )[Severity: Low]
ShouldPAGEFLAG()be avoided here sofolio_test_vmemmap_optimized(),folio_set_vmemmap_optimized(), andfolio_clear_vmemmap_optimized()are not exposed?
I had considered this as well. Initially, I looked for a macro that could define only the page helpers, but all the available macros also generate folio helpers, so I ended up using PAGEFLAG(). Nevertheless, I agree that PAGEFLAG() should be avoided here to prevent the automatically generated folio_* helpers from being misused in the future. I will replace it with page-only accessors in the next revision.
Thanks.
Quoted 15 lines
PAGEFLAG()withPF_ANYgenerates those folio_* helpers targeting page index 0 (the head page), wherePG_vmemmap_optimizedaliasesPG_owner_priv_1and is never set for vmemmap optimization.Any caller using
folio_test_vmemmap_optimized()will silently get wrong results (false on optimized folios and true on swapcache or checked folios), and the set/clear helpers will corruptPG_owner_priv_1on the head page.Defining page-only inline helpers (like
PageAnonExclusive()) or keeping the bit manipulation internal to the vmemmap-optimization helpers would avoid exposing these broken folio_* helpers.Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
PATCH v2 3/3 mm/hugetlb_vmemmap: remove HPG_vmemmap_optimized
In reply to Muchun SongHPG_vmemmap_optimized duplicates the state recorded in the shared vmemmap backing page and must be updated on every mapping transition. Derive the state with folio_vmemmap_optimized() instead and remove the flag and its explicit updates to simplify the code.
--- include/linux/hugetlb.h | 3 --- mm/hugetlb.c | 15 ++++++-------- mm/hugetlb_vmemmap.c | 43 +++++++---------------------------------- mm/memory-failure.c | 4 ++-- 4 files changed, 15 insertions(+), 50 deletions(-)
include/linux/hugetlb.h +0 -3
@@ -612,7 +612,6 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,* modifications require hugetlb_lock. * HPG_freed - Set when page is on the free lists. * Synchronization: hugetlb_lock held for examination and modification. -* HPG_vmemmap_optimized - Set when the vmemmap pages of the page are freed. * HPG_raw_hwp_unreliable - Set when the hugetlb page has a hwpoison sub-page * that is not tracked by raw_hwp_page list. */
@@ -621,7 +620,6 @@ enum hugetlb_page_flags { HPG_migratable, HPG_temporary, HPG_freed, - HPG_vmemmap_optimized, HPG_raw_hwp_unreliable, HPG_cma, __NR_HPAGEFLAGS,
@@ -681,7 +679,6 @@ HPAGEFLAG(RestoreReserve, restore_reserve) HPAGEFLAG(Migratable, migratable) HPAGEFLAG(Temporary, temporary) HPAGEFLAG(Freed, freed) -HPAGEFLAG(VmemmapOptimized, vmemmap_optimized) HPAGEFLAG(RawHwpUnreliable, raw_hwp_unreliable)HPAGEFLAG (Cma, cma)
mm/hugetlb.c +6 -9
@@ -1510,7 +1510,7 @@ void remove_hugetlb_folio(struct hstate *h, struct folio *folio,* pages. Otherwise, someone (memory error handling) may try to write * to tail struct pages. */ -if (!folio_test_hugetlb_vmemmap_optimized (folio)) +if (!folio_vmemmap_optimized (folio))__folio_clear_hugetlb (folio); h->nr_huge_pages--;
@@ -1522,14 +1522,13 @@ void add_hugetlb_folio(struct hstate *h, struct folio *folio, {int nid =folio_nid (folio); -VM_BUG_ON_FOLIO (!folio_test_hugetlb_vmemmap_optimized (folio), folio); +VM_BUG_ON_FOLIO (!folio_vmemmap_optimized (folio), folio);lockdep_assert_held (&hugetlb_lock);/* Callers must clear transient flags before returning to the pool. */ VM_WARN_ON_ONCE_FOLIO ((unsigned long )folio->private & - ~(BIT (HPG_vmemmap_optimized) | -BIT (HPG_raw_hwp_unreliable) | + ~(BIT (HPG_raw_hwp_unreliable) |BIT (HPG_cma)), folio);INIT_LIST_HEAD (&folio->lru);
@@ -1550,7 +1549,7 @@ void add_hugetlb_folio(struct hstate *h, struct folio *folio,static void __update_and_free_hugetlb_folio (struct hstate *h,struct folio *folio) { -bool clear_flag =folio_test_hugetlb_vmemmap_optimized (folio); +bool clear_flag =folio_vmemmap_optimized (folio);if (hstate_is_gigantic_no_runtime (h)) {/* Callers must filter gigantic_no_runtime upstream. */
@@ -1658,7 +1657,7 @@ static inline void flush_free_hpage_work(struct hstate *h)static void update_and_free_hugetlb_folio (struct hstate *h,struct folio *folio,bool atomic) { -if (!folio_test_hugetlb_vmemmap_optimized (folio) || !atomic) { +if (!folio_vmemmap_optimized (folio) || !atomic) {__update_and_free_hugetlb_folio (h, folio);return ; }
@@ -3481,8 +3480,6 @@ static void __init gather_bootmem_prealloc_node(unsigned long nid)memmap_init_compound_page (page, pfn, zone,huge_page_order (h));init_new_hugetlb_folio (folio); -if (vmemmap_optimizable_order (pfn_to_section_compound_order (pfn))) -folio_set_hugetlb_vmemmap_optimized (folio);section_set_compound_order_range (pfn, nr_pages,0 );list_add (&folio->lru, &folio_list);
@@ -4115,7 +4112,7 @@ static long demote_free_hugetlb_folios(struct hstate *src, struct hstate *dst,int i;bool cma; -if (folio_test_hugetlb_vmemmap_optimized (folio)) +if (folio_vmemmap_optimized (folio))continue ; cma =folio_test_hugetlb_cma (folio);
mm/hugetlb_vmemmap.c +7 -36
75 lines not on this page · raw message
mm/memory-failure.c +2 -2
@@ -2028,7 +2028,7 @@ static unsigned long folio_free_raw_hwp(struct folio *folio, bool move_flag)* hugetlb_vmemmap_optimized hugepages can't be freed because struct * pages for tail pages are required but they don't exist. */ -if (move_flag &&folio_test_hugetlb_vmemmap_optimized (folio)) +if (move_flag &&folio_vmemmap_optimized (folio))return 0 ;/*
@@ -2045,7 +2045,7 @@ void folio_clear_hugetlb_hwpoison(struct folio *folio) {if (folio_test_hugetlb_raw_hwp_unreliable (folio))return ; -if (folio_test_hugetlb_vmemmap_optimized (folio)) +if (folio_vmemmap_optimized (folio))return ;folio_clear_hwpoison (folio);folio_free_raw_hwp (folio, true);
Signature · 1 line
2.54.0