mm-rmap-make-anon_vma-functions-internal.patch removed from -mm tree
The quilt patch titled
Subject: mm/rmap: make anon_vma functions internal
has been removed from the -mm tree. Its filename was
mm-rmap-make-anon_vma-functions-internal.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 <[email protected]>
Subject: mm/rmap: make anon_vma functions internal
Date: Sun, 18 Jan 2026 14:50:42 +0000
The bulk of the anon_vma operations are only used by mm, so formalise this by putting the function prototypes and inlines in mm/internal.h. This allows us to make changes without having to worry about the rest of the kernel.
---
include/linux/rmap.h | 60 ----------------------------------------- mm/internal.h | 58 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 60 deletions(-)
include/linux/rmap.h renamed from include/linux/rmap.h~mm-rmap-make-anon_vma-functions-internal +0 -60
@@ -104,68 +104,8 @@ enum ttu_flags { };#ifdef CONFIG_MMU -static inline void get_anon_vma (struct anon_vma *anon_vma) -{ -atomic_inc (&anon_vma->refcount); -} -void __put_anon_vma (struct anon_vma *anon_vma); - -static inline void put_anon_vma (struct anon_vma *anon_vma) -{ -if (atomic_dec_and_test (&anon_vma->refcount)) -__put_anon_vma (anon_vma); -} - -static inline void anon_vma_lock_write (struct anon_vma *anon_vma) -{ -down_write (&anon_vma->root->rwsem); -} - -static inline int anon_vma_trylock_write (struct anon_vma *anon_vma) -{ -return down_write_trylock (&anon_vma->root->rwsem); -} - -static inline void anon_vma_unlock_write (struct anon_vma *anon_vma) -{ -up_write (&anon_vma->root->rwsem); -} - -static inline void anon_vma_lock_read (struct anon_vma *anon_vma) -{ -down_read (&anon_vma->root->rwsem); -} - -static inline int anon_vma_trylock_read (struct anon_vma *anon_vma) -{ -return down_read_trylock (&anon_vma->root->rwsem); -} - -static inline void anon_vma_unlock_read (struct anon_vma *anon_vma) -{ -up_read (&anon_vma->root->rwsem); -} - - -/* -* anon_vma helper functions. -*/ void anon_vma_init (void );/* create anon_vma_cachep */ -int __anon_vma_prepare (struct vm_area_struct *); -void unlink_anon_vmas (struct vm_area_struct *); -int anon_vma_clone (struct vm_area_struct *,struct vm_area_struct *); -int anon_vma_fork (struct vm_area_struct *,struct vm_area_struct *); - -static inline int anon_vma_prepare (struct vm_area_struct *vma) -{ -if (likely (vma->anon_vma)) -return 0 ; - -return __anon_vma_prepare (vma); -} - -struct anon_vma *folio_get_anon_vma (const struct folio *folio);#ifdef CONFIG_MM_ID static __always_inline void folio_lock_large_mapcount(struct folio *folio)
mm/internal.h renamed from mm/internal.h~mm-rmap-make-anon_vma-functions-internal +58 -0
64 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
selftests-mm-remove-virtual_address_range-test.patch mm-vma-rename-vma_lock_offset-to-vm_refcnt_exclude_readers_flag.patch mm-vma-document-possible-vma-vm_refcnt-values-and-reference-comment.patch mm-vma-rename-is_vma_write_only-separate-out-shared-refcount-put.patch mm-vma-adduse-vma-lockdep-acquire-release-defines.patch mm-vma-de-duplicate-__vma_enter_locked-error-path.patch mm-vma-clean-up-__vma_enter-exit_locked.patch mm-vma-introduce-helper-struct-thread-through-exclusive-lock-fns.patch mm-vma-improve-and-document-__is_vma_write_locked.patch mm-vma-improve-and-document-__is_vma_write_locked-fix.patch mm-vma-update-vma_assert_locked-to-use-lockdep.patch mm-vma-update-vma_assert_locked-to-use-lockdep-fix.patch mm-vma-add-and-use-vma_assert_stabilised.patch mm-vma-remove-__private-sparse-decoration-from-vma_flags_t.patch mm-rename-vma_flag_test-set_atomic-to-vma_test-set_atomic_flag.patch mm-add-mk_vma_flags-bitmap-flag-macro-helper.patch tools-bitmap-add-missing-bitmap_.patch mm-add-basic-vma-flag-operation-helper-functions.patch mm-update-hugetlbfs-to-use-vma-flags-on-mmap_prepare.patch mm-update-secretmem-to-use-vma-flags-on-mmap_prepare.patch mm-update-shmem__file_-functions-to-use-vma_flags_t.patch mm-update-all-remaining-mmap_prepare-users-to-use-vma_flags_t.patch mm-make-vm_area_desc-utilise-vma_flags_t-only.patch tools-testing-vma-separate-vma-userland-tests-into-separate-files.patch tools-testing-vma-separate-out-vma_internalh-into-logical-headers.patch tools-testing-vma-add-vma-userland-tests-for-vma-flag-functions.patch