Re: [PATCH v2 1/9] mm/huge_memory: simplify vma_is_specal_huge()

From: Kiryl Shutsemau

Date: Thu Mar 19 2026 - 13:04:11 EST


On Thu, Mar 19, 2026 at 01:00:07PM +0000, Lorenzo Stoakes (Oracle) wrote:
> This function is confused - it overloads the term 'special' yet again,
> checks for DAX but in many cases the code explicitly excludes DAX before
> invoking the predicate.
>
> It also unnecessarily checks for vma->vm_file - this has to be present for
> a driver to have set VMA_MIXEDMAP_BIT or VMA_PFNMAP_BIT.

What enforces this?

--
Kiryl Shutsemau / Kirill A. Shutemov