Re: [PATCH 2/6] mm: add vma_desc_test_all() and use it

Pedro Falcato
2026-03-25T14:52:53Z

On Thu, Mar 05, 2026 at 10:50:15AM +0000, Lorenzo Stoakes (Oracle) wrote:
> erofs and zonefs are using vma_desc_test_any() twice to check whether all
> of VMA_SHARED_BIT and VMA_MAYWRITE_BIT are set, this is silly, so add
> vma_desc_test_all() to test all flags and update erofs and zonefs to use
> it.
>
> While we're here, update the helper function comments to be more
> consistent.
>
> Also add the same to the VMA test headers.
>
> Signed-off-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>

Reviewed-by: Pedro Falcato <pfalcato@suse.de>

--
Pedro