Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: rename zap_vma_pages() to zap_vma()

Let's rename it to an even simpler name. While at it, add some simplistic
kernel doc.

Link: https://lkml.kernel.org/r/20260227200848.114019-13-david@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Arve <arve@android.com>
Cc: "Borislav Petkov (AMD)" <bp@alien8.de>
Cc: Carlos Llamas <cmllamas@google.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: Daniel Borkman <daniel@iogearbox.net>
Cc: Dave Airlie <airlied@gmail.com>
Cc: David Ahern <dsahern@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jakub Kacinski <kuba@kernel.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Jann Horn <jannh@google.com>
Cc: Janosch Frank <frankja@linux.ibm.com>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Namhyung kim <namhyung@kernel.org>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand (Arm) and committed by
Andrew Morton
32bc7fe4 3a31d08d

+9 -5
+1 -1
arch/powerpc/platforms/book3s/vas-api.c
··· 414 414 /* 415 415 * When the LPAR lost credits due to core removal or during 416 416 * migration, invalidate the existing mapping for the current 417 - * paste addresses and set windows in-active (zap_vma_pages in 417 + * paste addresses and set windows in-active (zap_vma() in 418 418 * reconfig_close_windows()). 419 419 * New mapping will be done later after migration or new credits 420 420 * available. So continue to receive faults if the user space
+1 -1
arch/powerpc/platforms/pseries/vas.c
··· 807 807 * is done before the original mmap() and after the ioctl. 808 808 */ 809 809 if (vma) 810 - zap_vma_pages(vma); 810 + zap_vma(vma); 811 811 812 812 mutex_unlock(&task_ref->mmap_mutex); 813 813 mmap_write_unlock(task_ref->mm);
+5 -1
include/linux/mm.h
··· 2806 2806 unsigned long size); 2807 2807 void zap_page_range_single(struct vm_area_struct *vma, unsigned long address, 2808 2808 unsigned long size); 2809 - static inline void zap_vma_pages(struct vm_area_struct *vma) 2809 + /** 2810 + * zap_vma - zap all page table entries in a vma 2811 + * @vma: The vma to zap. 2812 + */ 2813 + static inline void zap_vma(struct vm_area_struct *vma) 2810 2814 { 2811 2815 zap_page_range_single(vma, vma->vm_start, vma->vm_end - vma->vm_start); 2812 2816 }
+1 -1
lib/vdso/datastore.c
··· 121 121 mmap_read_lock(mm); 122 122 for_each_vma(vmi, vma) { 123 123 if (vma_is_special_mapping(vma, &vdso_vvar_mapping)) 124 - zap_vma_pages(vma); 124 + zap_vma(vma); 125 125 } 126 126 mmap_read_unlock(mm); 127 127
+1 -1
mm/page-writeback.c
··· 2645 2645 * while this function is in progress, although it may have been truncated 2646 2646 * before this function is called. Most callers have the folio locked. 2647 2647 * A few have the folio blocked from truncation through other means (e.g. 2648 - * zap_vma_pages() has it mapped and is holding the page table lock). 2648 + * zap_vma() has it mapped and is holding the page table lock). 2649 2649 * When called from mark_buffer_dirty(), the filesystem should hold a 2650 2650 * reference to the buffer_head that is being marked dirty, which causes 2651 2651 * try_to_free_buffers() to fail.