Re: [PATCH v3 3/4] tools/testing/vma: eliminate dependency on vma->__vm_flags

From: Pedro Falcato
Date: Tue Nov 25 2025 - 05:47:14 EST


On Tue, Nov 25, 2025 at 10:01:01AM +0000, Lorenzo Stoakes wrote:
> The userland VMA test code relied on an internal implementation detail -
> the existence of vma->__vm_flags to directly access VMA flags. There is no
> need to do so when we have the vm_flags_*() helper functions available.
>
> This is ugly, but also a subsequent commit will eliminate this field
> altogether so this will shortly become broken.
>
> This patch has us utilise the helper functions instead.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> Acked-by: Vlastimil Babka <vbabka@xxxxxxx>

Acked-by: Pedro Falcato <pfalcato@xxxxxxx>

--
Pedro