Re: [PATCH 4/6] mm: reintroduce vma_flags_test() as a singular flag test

David Hildenbrand (Arm)
2026-03-05T13:49:26Z

On 3/5/26 11:50, Lorenzo Stoakes (Oracle) wrote:
> Since we've now renamed vma_flags_test() to vma_flags_test_any() to be very
> clear as to what we are in fact testing, we now have the opportunity to
> bring vma_flags_test() back, but for explicitly testing a single VMA flag.
>
> This is useful, as often flag tests are against a single flag, and
> vma_flags_test_any(flags, VMA_READ_BIT) reads oddly and potentially causes
> confusion.

Agreed

Acked-by: David Hildenbrand (Arm) <david@kernel.org>

--
Cheers,

David