]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/gup: remove gup_fast_pgd_leaf() and clean up the relevant codes
authorBaoquan He <bhe@redhat.com>
Thu, 10 Apr 2025 03:57:16 +0000 (11:57 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:31 +0000 (17:48 -0700)
commit339122abb556db2cf497c929a2b6196e37385aee
tree4218d2500ace9306a4c18915fef2dfa1c23a9cc3
parentede27b7ee2e6c0c5148d4bab04e5d287d6fbc771
mm/gup: remove gup_fast_pgd_leaf() and clean up the relevant codes

In the current kernel, only pud huge page is supported in some
architectures.  P4d and pgd huge pages haven't been supported yet.  And in
mm/gup.c, there's no pgd huge page handling in the follow_page_mask() code
path.  Hence it doesn't make sense to only have gup_fast_pgd_leaf() in
gup_fast code path.

Here remove gup_fast_pgd_leaf() and clean up the relevant codes.

Link: https://lkml.kernel.org/r/20250410035717.473207-4-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Yanjun.Zhu <yanjun.zhu@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/gup.c