mm-rename-zap_page_range_single-to-zap_vma_range.patch removed from -mm tree
The quilt patch titled
Subject: mm: rename zap_page_range_single() to zap_vma_range()
has been removed from the -mm tree. Its filename was
mm-rename-zap_page_range_single-to-zap_vma_range.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: "David Hildenbrand (Arm)" <[email protected]>
Subject: mm: rename zap_page_range_single() to zap_vma_range()
Date: Fri, 27 Feb 2026 21:08:45 +0100
Let's rename it to make it better match our new naming scheme.
While at it, polish the kerneldoc.
[[email protected]: fix rustfmtcheck]
Signed-off-by David Hildenbrand (Arm) <[email protected]>
Reviewed-by Lorenzo Stoakes (Oracle) <[email protected]>
Acked-by Puranjay Mohan <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Alice Ryhl <[email protected]>
Cc Andrii Nakryiko <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Arve <[email protected]>
Cc "Borislav Petkov (AMD)" <[email protected]>
Cc Carlos Llamas <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Claudio Imbrenda <[email protected]>
Cc Daniel Borkman <[email protected]>
Cc Dave Airlie <[email protected]>
Cc David Ahern <[email protected]>
Cc David Rientjes <[email protected]>
Cc David S. Miller <[email protected]>
Cc Dimitri Sivanich <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Hartley Sweeten <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Ian Abbott <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jakub Kacinski <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Jann Horn <[email protected]>
Cc Janosch Frank <[email protected]>
Cc Jarkko Sakkinen <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Jonas Lahtinen <[email protected]>
Cc Leon Romanovsky <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Madhavan Srinivasan <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Miguel Ojeda <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Namhyung kim <[email protected]>
Cc Neal Cardwell <[email protected]>
Cc Paolo Abeni <[email protected]>
Cc Pedro Falcato <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vincenzo Frascino <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/s390/mm/gmap_helpers.c | 2 +- drivers/android/binder/page_range.rs | 4 ++-- drivers/android/binder_alloc.c | 2 +- include/linux/mm.h | 4 ++-- kernel/bpf/arena.c | 2 +- kernel/events/core.c | 2 +- mm/madvise.c | 4 ++-- mm/memory.c | 14 +++++++------- net/ipv4/tcp.c | 6 +++--- rust/kernel/mm/virt.rs | 4 ++-- 10 files changed, 22 insertions(+), 22 deletions(-)
arch/s390/mm/gmap_helpers.c renamed from arch/s390/mm/gmap_helpers.c~mm-rename-zap_page_range_single-to-zap_vma_range +1 -1
@@ -89,7 +89,7 @@ void gmap_helper_discard(struct mm_strucif (!vma)return ;if (!is_vm_hugetlb_page (vma)) -zap_page_range_single (vma, vmaddr,min (end, vma->vm_end) - vmaddr); +zap_vma_range (vma, vmaddr,min (end, vma->vm_end) - vmaddr); vmaddr = vma->vm_end; } }
drivers/android/binder_alloc.c renamed from drivers/android/binder_alloc.c~mm-rename-zap_page_range_single-to-zap_vma_range +1 -1
@@ -1185,7 +1185,7 @@ enum lru_status binder_alloc_free_page(sif (vma) {trace_binder_unmap_user_start (alloc, index); -zap_page_range_single (vma, page_addr,PAGE_SIZE ); +zap_vma_range (vma, page_addr,PAGE_SIZE );trace_binder_unmap_user_end (alloc, index); }
drivers/android/binder/page_range.rs renamed from drivers/android/binder/page_range.rs~mm-rename-zap_page_range_single-to-zap_vma_range +2 -2
@@ -130,7 +130,7 @@ pub(crate) struct ShrinkablePageRange { pid: Pid,/// The mm for the relevant process. mm: ARef<Mm>, -/// Used to synchronize calls to `vm_insert_page` and `zap_page_range_single`. +/// Used to synchronize calls to `vm_insert_page` and `zap_vma_range`. #[pin] mm_lock: Mutex<()>,/// Spinlock protecting changes to pages.
@@ -762,7 +762,7 @@ unsafe extern "C" fn rust_shrink_free_paif let Some (unchecked_vma) = mmap_read.vma_lookup (vma_addr) {if let Some (vma) =check_vma (unchecked_vma, range_ptr) {let user_page_addr = vma_addr + (page_index <<PAGE_SHIFT ); - vma.zap_page_range_single (user_page_addr,PAGE_SIZE ); + vma.zap_vma_range (user_page_addr,PAGE_SIZE ); } }
include/linux/mm.h renamed from include/linux/mm.h~mm-rename-zap_page_range_single-to-zap_vma_range +2 -2
@@ -2804,7 +2804,7 @@ struct page *vm_normal_page_pud(struct vvoid zap_vma_ptes (struct vm_area_struct *vma,unsigned long address,unsigned long size); -void zap_page_range_single (struct vm_area_struct *vma,unsigned long address, +void zap_vma_range (struct vm_area_struct *vma,unsigned long address,unsigned long size);/** * zap_vma - zap all page table entries in a vma
@@ -2812,7 +2812,7 @@ void zap_page_range_single(struct vm_are*/ static inline void zap_vma (struct vm_area_struct *vma) { -zap_page_range_single (vma, vma->vm_start, vma->vm_end - vma->vm_start); +zap_vma_range (vma, vma->vm_start, vma->vm_end - vma->vm_start); }struct mmu_notifier_range ;
kernel/bpf/arena.c renamed from kernel/bpf/arena.c~mm-rename-zap_page_range_single-to-zap_vma_range +1 -1
@@ -656,7 +656,7 @@ static void zap_pages(struct bpf_arena *guard (mutex)(&arena->lock);/* iterate link list under lock */ list_for_each_entry (vml, &arena->vma_list, head) -zap_page_range_single (vml->vma, uaddr,PAGE_SIZE * page_cnt); +zap_vma_range (vml->vma, uaddr,PAGE_SIZE * page_cnt); }static void arena_free_pages (struct bpf_arena *arena,long uaddr,long page_cnt,bool sleepable)
kernel/events/core.c renamed from kernel/events/core.c~mm-rename-zap_page_range_single-to-zap_vma_range +1 -1
@@ -7213,7 +7213,7 @@ static int map_range(struct perf_buffer#ifdef CONFIG_MMU /* Clear any partial mappings on error. */ if (err) -zap_page_range_single (vma, vma->vm_start, nr_pages *PAGE_SIZE ); +zap_vma_range (vma, vma->vm_start, nr_pages *PAGE_SIZE );#endif return err;
mm/madvise.c renamed from mm/madvise.c~mm-rename-zap_page_range_single-to-zap_vma_range +2 -2
@@ -832,7 +832,7 @@ static int madvise_free_single_vma(struc* Application no longer needs these pages. If the pages are dirty, * it's OK to just throw them away. The app will be more careful about * data it wants to keep. Be sure to free swap resources too. The -* zap_page_range_single call sets things up for shrink_active_list to actually +* zap_vma_range call sets things up for shrink_active_list to actually * free these pages later if no one else has touched them in the meantime, * although we could add these pages to a global reuse list for * shrink_active_list to pick up before reclaiming other pages.
@@ -1191,7 +1191,7 @@ static long madvise_guard_install(struct* OK some of the range have non-guard pages mapped, zap * them. This leaves existing guard pages in place. */ -zap_page_range_single (vma, range->start, range->end - range->start); +zap_vma_range (vma, range->start, range->end - range->start); }/*
mm/memory.c renamed from mm/memory.c~mm-rename-zap_page_range_single-to-zap_vma_range +7 -7
@@ -2215,14 +2215,14 @@ void zap_vma_range_batched(struct mmu_ga }/** -* zap_page_range_single - remove user pages in a given range -* @vma: vm_area_struct holding the applicable pages -* @address: starting address of pages to zap +* zap_vma_range - zap all page table entries in a vma range +* @vma: the vma covering the range to zap +* @address: starting address of the range to zap * @size: number of bytes to zap * -* The range must fit into one VMA. +* The provided address range must be fully contained within @vma. */ -void zap_page_range_single (struct vm_area_struct *vma,unsigned long address, +void zap_vma_range (struct vm_area_struct *vma,unsigned long address,unsigned long size) {struct mmu_gather tlb;
@@ -2250,7 +2250,7 @@ void zap_vma_ptes(struct vm_area_struct !(vma->vm_flags & VM_PFNMAP))return ; -zap_page_range_single (vma, address, size); +zap_vma_range (vma, address, size); }EXPORT_SYMBOL_GPL (zap_vma_ptes);
@@ -3018,7 +3018,7 @@ static int remap_pfn_range_notrack(struc* maintain page reference counts, and callers may free * pages due to the error. So zap it early. */ -zap_page_range_single (vma, addr, size); +zap_vma_range (vma, addr, size);return error; }
net/ipv4/tcp.c renamed from net/ipv4/tcp.c~mm-rename-zap_page_range_single-to-zap_vma_range +3 -3
@@ -2105,7 +2105,7 @@ static int tcp_zerocopy_vm_insert_batch_ maybe_zap_len = total_bytes_to_map -/* All bytes to map */ *length +/* Mapped or pending */ (pages_remaining *PAGE_SIZE );/* Failed map. */ -zap_page_range_single (vma, *address, maybe_zap_len); +zap_vma_range (vma, *address, maybe_zap_len); err =0 ; }
@@ -2113,7 +2113,7 @@ static int tcp_zerocopy_vm_insert_batch_unsigned long leftover_pages = pages_remaining;int bytes_mapped; -/* We called zap_page_range_single, try to reinsert. */ +/* We called zap_vma_range, try to reinsert. */ err =vm_insert_pages (vma, *address, pending_pages, &pages_remaining);
@@ -2270,7 +2270,7 @@ static int tcp_zerocopy_receive(struct s total_bytes_to_map = avail_len & ~(PAGE_SIZE -1 );if (total_bytes_to_map) {if (!(zc->flags &TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT )) -zap_page_range_single (vma, address, total_bytes_to_map); +zap_vma_range (vma, address, total_bytes_to_map); zc->length = total_bytes_to_map; zc->recv_skip_hint =0 ; }else {
rust/kernel/mm/virt.rs renamed from rust/kernel/mm/virt.rs~mm-rename-zap_page_range_single-to-zap_vma_range +2 -2
@@ -113,7 +113,7 @@ impl VmaRef {/// kernel goes further in freeing unused page tables, but for the purposes of this operation /// we must only assume that the leaf level is cleared. #[inline] -pub fn zap_page_range_single (&self, address:usize , size:usize ) { +pub fn zap_vma_range (&self, address:usize , size:usize ) {let (end, did_overflow) = address.overflowing_add (size);if did_overflow || address < self.start () || self.end () < end {// TODO: call WARN_ONCE once Rust version of it is added
@@ -123,7 +123,7 @@ impl VmaRef {// SAFETY: By the type invariants, the caller has read access to this VMA, which is // sufficient for this method call. This method has no requirements on the vma flags. The // address range is checked to be within the vma. -unsafe { bindings::zap_page_range_single (self.as_ptr (), address, size) }; +unsafe { bindings::zap_vma_range (self.as_ptr (), address, size) }; }/// If the [`VM_MIXEDMAP`] flag is set, returns a [`VmaMixedMap`] to this VMA, otherwise
_
Patches currently in -mm which might be from [email protected] are