mm-vma-introduce-vma_clear_flags.patch removed from -mm tree
The quilt patch titled
Subject: mm/vma: introduce vma_clear_flags[_mask]()
has been removed from the -mm tree. Its filename was
mm-vma-introduce-vma_clear_flags.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Lorenzo Stoakes (Oracle)" <[email protected]>
Subject: mm/vma: introduce vma_clear_flags[_mask]()
Date: Fri, 20 Mar 2026 19:38:36 +0000
Introduce a helper function and helper macro to easily clear a VMA's flags using the new vma_flags_t vma->flags field:
* vma_clear_flags_mask() - Clears all of the flags in a specified mask in the VMA's flags field.
* vma_clear_flags() - Clears all of the specified individual VMA flag bits in a VMA's flags field.
Also update the VMA tests to reflect the change.
---
include/linux/mm.h | 16 ++++++++++++++++ tools/testing/vma/include/dup.h | 9 +++++++++ 2 files changed, 25 insertions(+)
include/linux/mm.h renamed from include/linux/mm.h~mm-vma-introduce-vma_clear_flags +16 -0
@@ -1363,6 +1363,22 @@ static __always_inline void vma_set_flag#define vma_set_flags (vma, ...) \ vma_set_flags_mask(vma, mk_vma_flags(__VA_ARGS__)) +/* Helper to clear all VMA flags in a VMA. */ +static __always_inline void vma_clear_flags_mask(struct vm_area_struct *vma, +vma_flags_t flags) +{ +vma_flags_clear_mask (&vma->flags, flags); +} + +/* +* Helper macro for clearing VMA flags, e.g.: +* +* vma_clear_flags(vma, VMA_IO_BIT, VMA_PFNMAP_BIT, VMA_DONTEXPAND_BIT, +* VMA_DONTDUMP_BIT); +*/ +#define vma_clear_flags (vma, ...) \ + vma_clear_flags_mask(vma, mk_vma_flags(__VA_ARGS__)) +/* * Test whether a specific VMA flag is set in a VMA descriptor, e.g.: *
tools/testing/vma/include/dup.h renamed from tools/testing/vma/include/dup.h~mm-vma-introduce-vma_clear_flags +9 -0
@@ -1065,6 +1065,15 @@ static __always_inline void vma_set_flag#define vma_set_flags (vma, ...) \ vma_set_flags_mask(vma, mk_vma_flags(__VA_ARGS__)) +static __always_inline void vma_clear_flags_mask(struct vm_area_struct *vma, +vma_flags_t flags) +{ +vma_flags_clear_mask (&vma->flags, flags); +} + +#define vma_clear_flags (vma, ...) \ + vma_clear_flags_mask(vma, mk_vma_flags(__VA_ARGS__)) + static __always_inline bool vma_desc_test(const struct vm_area_desc *desc,vma_flag_t bit) {
_
Patches currently in -mm which might be from [email protected] are
maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch