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/gup: remove no longer used gup_fast_undo_dev_pagemap

This helper is no longer used after commit fd2825b0760a ("mm/gup: remove
pXX_devmap usage from get_user_pages()").

Link: https://lkml.kernel.org/r/20251219-gup-cleanup-v1-1-348a70d9eecb@tencent.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kairui Song and committed by
Andrew Morton
7969f305 9c9828d3

-11
-11
mm/gup.c
··· 2806 2806 return !reject_file_backed || shmem_mapping(mapping); 2807 2807 } 2808 2808 2809 - static void __maybe_unused gup_fast_undo_dev_pagemap(int *nr, int nr_start, 2810 - unsigned int flags, struct page **pages) 2811 - { 2812 - while ((*nr) - nr_start) { 2813 - struct folio *folio = page_folio(pages[--(*nr)]); 2814 - 2815 - folio_clear_referenced(folio); 2816 - gup_put_folio(folio, 1, flags); 2817 - } 2818 - } 2819 - 2820 2809 #ifdef CONFIG_ARCH_HAS_PTE_SPECIAL 2821 2810 /* 2822 2811 * GUP-fast relies on pte change detection to avoid concurrent pgtable