Re: [PATCH v3 19/23] mm/vma: introduce vma_clear_flags[_mask]()

Vlastimil Babka (SUSE)
2026-03-20T10:04:55Z

On 3/18/26 16:50, Lorenzo Stoakes (Oracle) wrote:
> Introduce a helper function and helper macro to easily clear a VMA's flags
> using the new vma_flags_t vma->flags field:
>
> * vma_clear_flags_mask() - Clears all of the flags in a specified mask in
> the VMA's flags field.
> * vma_clear_flags() - Clears all of the specified individual VMA flag bits
> in a VMA's flags field.
>
> Also update the VMA tests to reflect the change.
>
> Signed-off-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>

Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>