On 3/18/26 16:50, Lorenzo Stoakes (Oracle) wrote: > Introduce helper functions and macros to make it convenient to test flags > and flag masks for VMAs, specifically: > > * vma_test() - determine if a single VMA flag is set in a VMA. > * vma_test_any_mask() - determine if any flags in a vma_flags_t value are > set in a VMA. > * vma_test_any() - Helper macro to test if any of specific flags are set. > > Also, there are a mix of 'inline's and '__always_inline's in VMA helper > function declarations, update to consistently use __always_inline. > > Finally, update the VMA tests to reflect the changes. > > Signed-off-by: Lorenzo Stoakes (Oracle) <[email protected]>
Acked-by: Vlastimil Babka (SUSE) <[email protected]>
