> vma_is_special_huge() tests whether either the VMA_PFNMAP_BIT or > VMA_MIXEDMAP_BIT is set (i.e. whether the VMA is not mm-managed), > but with a DAX carve-out. > > DAX however no longer sets VMA_MIXEDMAP_BIT, so this carve-out is no longer > required. > > Therefore test for !vma_is_mm_managed() instead and also drop the > VMA_IO_BIT check, as it is now redundant since it is enforced that > mm-managed mappings may not set VMA_IO_BIT. > > This also eliminates another overloaded use of 'special' within mm. > > No functional change intended. > > Acked-by: Zi Yan <[email protected]> > Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/20261003-b4-mmap-prepare-vma-flag-sanify-v4-0-a1f052500...@kernel.org?part=38
