Re: [PATCH v3 10/23] mm/vma: introduce vma_flags_same[_mask/_pair]()
"Vlastimil Babka (SUSE)" <[email protected]> Thu, 19 Mar 2026 18:31:20 +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: > Add helpers to determine if two sets of VMA flags are precisely the same, > that is - that every flag set one is set in another, and neither contain > any flags not set in the other. > > We also introduce vma_flags_same_pair() for cases where we want to compare > two sets of VMA flags which are both non-const values. > > Also update the VMA tests to reflect the change, we already implicitly > test that this functions correctly having used it for testing purposes > previously. > > Signed-off-by: Lorenzo Stoakes (Oracle) <[email protected]> Acked-by: Vlastimil Babka (SUSE) <[email protected]>