Re: [PATCH v3 13/23] mm/vma: introduce vma_test[_any[_mask]](), and make inlining consistent
"Vlastimil Babka (SUSE)" <[email protected]> Fri, 20 Mar 2026 09:48:40 +0100
| Newsgroups | org.kernel.vger.linux-hexagon,dev.linux.lists.loongarch,org.infradead.lists.linux-riscv,org.infradead.lists.linux-snps-arc,org.infradead.lists.linux-um,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mips,org.kernel.vger.linux-s390,org.kernel.vger.selinux,org.kvack.linux-mm,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <[email protected]> |
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]>