On Thu, Sep 03, 2026 at 08:21:24PM +0800, Muchun Song wrote: > ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP is named after its first user, but > the underlying requirement is not HugeTLB-specific. Generic MM only needs > to know whether an architecture can safely remap populated vmemmap PTEs at > run time. > > Rename the architecture opt-in to ARCH_SUPPORTS_VMEMMAP_REMAP and make > HugeTLB vmemmap optimization depend on that generic capability. This also > prepares for FS-DAX vmemmap optimization, which relies on the same runtime > remap support. > > Signed-off-by: Muchun Song <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]> -- Oscar Salvador SUSE Labs

