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

From: Vlastimil Babka (SUSE)

Date: Fri Mar 20 2026 - 06:10:59 EST


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@xxxxxxxxxx>

Acked-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>