mm-vma-remove-unused-function-make-internal-functions-static.patch removed from -mm tree
The quilt patch titled
Subject: mm/vma: remove unused function, make internal functions static
has been removed from the -mm tree. Its filename was
mm-vma-remove-unused-function-make-internal-functions-static.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/vma: remove unused function, make internal functions static
Date: Mon, 20 Oct 2025 13:11:20 +0100
unlink_file_vma() is not used by anything, so remove it.
vma_link() and vma_link_file() are only used within mm/vma.c, so make them static.
---
mm/vma.c | 21 ++------------------- mm/vma.h | 6 ------ 2 files changed, 2 insertions(+), 25 deletions(-)
mm/vma.c renamed from mm/vma.c~mm-vma-remove-unused-function-make-internal-functions-static +2 -19
@@ -1754,24 +1754,7 @@ void unlink_file_vma_batch_final(structunlink_file_vma_batch_process (vb); } -/* -* Unlink a file-based vm structure from its interval tree, to hide -* vma from rmap and vmtruncate before freeing its page tables. -*/ -void unlink_file_vma (struct vm_area_struct *vma) -{ -struct file *file = vma->vm_file; - -if (file) { -struct address_space *mapping = file->f_mapping; - -i_mmap_lock_write (mapping); -__remove_shared_vm_struct (vma, mapping); -i_mmap_unlock_write (mapping); - } -} - -void vma_link_file (struct vm_area_struct *vma) +static void vma_link_file (struct vm_area_struct *vma) {struct file *file = vma->vm_file;struct address_space *mapping;
@@ -1784,7 +1767,7 @@ void vma_link_file(struct vm_area_struct } } -int vma_link (struct mm_struct *mm,struct vm_area_struct *vma) +static int vma_link (struct mm_struct *mm,struct vm_area_struct *vma) {VMA_ITERATOR (vmi, mm,0 );
mm/vma.h renamed from mm/vma.h~mm-vma-remove-unused-function-make-internal-functions-static +0 -6
@@ -312,12 +312,6 @@ void unlink_file_vma_batch_final(structvoid unlink_file_vma_batch_add (struct unlink_vma_file_batch *vb,struct vm_area_struct *vma); -void unlink_file_vma (struct vm_area_struct *vma); - -void vma_link_file (struct vm_area_struct *vma); - -int vma_link (struct mm_struct *mm,struct vm_area_struct *vma); -struct vm_area_struct *copy_vma (struct vm_area_struct **vmap,unsigned long addr,unsigned long len,pgoff_t pgoff,bool *need_rmap_locks);
_
Patches currently in -mm which might be from [email protected] are
mm-introduce-vm_maybe_guard-and-make-visible-in-proc-pid-smaps.patch mm-add-atomic-vma-flags-and-set-vm_maybe_guard-as-such.patch mm-add-atomic-vma-flags-and-set-vm_maybe_guard-as-such-fix.patch mm-implement-sticky-vma-flags.patch mm-introduce-copy-on-fork-vmas-and-make-vm_maybe_guard-one.patch mm-set-the-vm_maybe_guard-flag-on-guard-region-install.patch mm-set-the-vm_maybe_guard-flag-on-guard-region-install-fix.patch tools-testing-vma-add-vma-sticky-userland-tests.patch tools-testing-selftests-mm-add-madv_collapse-test-case.patch tools-testing-selftests-mm-add-smaps-visibility-guard-region-test.patch mm-correctly-handle-uffd-pte-markers.patch mm-introduce-leaf-entry-type-and-use-to-simplify-leaf-entry-logic.patch mm-avoid-unnecessary-uses-of-is_swap_pte.patch mm-eliminate-is_swap_pte-when-softleaf_from_pte-suffices.patch mm-use-leaf-entries-in-debug-pgtable-remove-is_swap_pte.patch fs-proc-task_mmu-refactor-pagemap_pmd_range.patch mm-avoid-unnecessary-use-of-is_swap_pmd.patch mm-huge_memory-refactor-copy_huge_pmd-non-present-logic.patch mm-huge_memory-refactor-change_huge_pmd-non-present-logic.patch mm-replace-pmd_to_swp_entry-with-softleaf_from_pmd.patch mm-introduce-pmd_is_huge-and-use-where-appropriate.patch mm-remove-remaining-is_swap_pmd-users-and-is_swap_pmd.patch mm-remove-non_swap_entry-and-use-softleaf-helpers-instead.patch mm-remove-is_hugetlb_entry_.patch mm-eliminate-further-swapops-predicates.patch mm-replace-remaining-pte_to_swp_entry-with-softleaf_from_pte.patch mm-rename-walk_page_range_mm.patch mm-madvise-allow-guard-page-install-remove-under-vma-lock.patch mm-propagate-vm_softdirty-on-merge.patch testing-selftests-mm-add-soft-dirty-merge-self-test.patch mm-declare-vma-flags-by-bit.patch mm-declare-vma-flags-by-bit-fix.patch mm-declare-vma-flags-by-bit-fix-2.patch mm-simplify-and-rename-mm-flags-function-for-clarity.patch tools-testing-vma-eliminate-dependency-on-vma-__vm_flags.patch mm-introduce-vma-flags-bitmap-type.patch