Re: [PATCH 0/3] drop hugetlb_free_pgd_range()
From: John Paul Adrian Glaubitz
Date: Fri Jul 25 2025 - 03:51:14 EST
Hi Anthony,
On Tue, 2025-07-15 at 18:26 -0700, Anthony Yznaga wrote:
> For all architectures that support hugetlb except for sparc,
> hugetlb_free_pgd_range() just calls free_pgd_range(). It turns out
> the sparc implementation is essentially identical to free_pgd_range()
> and can be removed. Remove it and update free_pgtables() to treat
> hugetlb VMAs the same as others.
>
> Anthony Yznaga (3):
> sparc64: remove hugetlb_free_pgd_range()
> mm: remove call to hugetlb_free_pgd_range()
> mm: drop hugetlb_free_pgd_range()
>
> arch/sparc/include/asm/hugetlb.h | 5 --
> arch/sparc/mm/hugetlbpage.c | 119 -------------------------------
> include/asm-generic/hugetlb.h | 9 ---
> include/linux/hugetlb.h | 7 --
> mm/memory.c | 42 +++++------
> 5 files changed, 18 insertions(+), 164 deletions(-)
I have applied this series against v6.16-rc7 and booted the kernel inside a
SPARC LDOM on Solaris 11.4 without any problems.
Tested-by: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913