linux/tools/testing/vma
David Hildenbrand (Arm) a9496e9e4b mm: move vma_mmu_pagesize() from hugetlb to vma.c
vma_mmu_pagesize() is also queried on non-hugetlb VMAs and does not really
belong into hugetlb.c.

PPC64 provides a custom overwrite with CONFIG_HUGETLB_PAGE, see
arch/powerpc/mm/book3s64/slice.c, so we cannot easily make this a static
inline function.

So let's move it to vma.c and add some proper kerneldoc.

To make vma tests happy, add a simple vma_kernel_pagesize() stub in
tools/testing/vma/include/custom.h.

Link: https://lkml.kernel.org/r/20260309151901.123947-3-david@kernel.org
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@kernel.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Jann Horn <jannh@google.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
History 2026-04-05 13:53:23 -07:00
..
include mm: move vma_mmu_pagesize() from hugetlb to vma.c 2026-04-05 13:53:23 -07:00
linux tools: testing: use existing atomic.h for vma/maple tests 2025-09-13 16:55:25 -07:00
tests tools/testing/vma: add test for vma_flags_test(), vma_desc_test() 2026-04-05 13:53:19 -07:00
.gitignore tools: add skeleton code for userland testing of VMA logic 2024-09-01 20:25:55 -07:00
main.c tools/testing/vma: separate VMA userland tests into separate files 2026-02-12 15:42:59 -08:00
Makefile tools/testing/vma: add VMA userland tests for VMA flag functions 2026-02-12 15:42:59 -08:00
shared.c tools/testing/vma: separate VMA userland tests into separate files 2026-02-12 15:42:59 -08:00
shared.h tools/testing/vma: separate VMA userland tests into separate files 2026-02-12 15:42:59 -08:00
vma_internal.h tools/testing/vma: add VMA userland tests for VMA flag functions 2026-02-12 15:42:59 -08:00