Re: [RFC PATCH v2 02/47] hugetlb: remove mk_huge_pte; it is unused

From: Mike Kravetz
Date: Thu Dec 08 2022 - 18:44:01 EST


On 10/21/22 16:36, James Houghton wrote:
> mk_huge_pte is unused and not necessary. pte_mkhuge is the appropriate
> function to call to create a HugeTLB PTE (see
> Documentation/mm/arch_pgtable_helpers.rst).
>
> It is being removed now to avoid complicating the implementation of
> HugeTLB high-granularity mapping.
>
> Signed-off-by: James Houghton <jthoughton@xxxxxxxxxx>
> ---
> arch/s390/include/asm/hugetlb.h | 5 -----
> include/asm-generic/hugetlb.h | 5 -----
> mm/debug_vm_pgtable.c | 2 +-
> mm/hugetlb.c | 7 +++----
> 4 files changed, 4 insertions(+), 15 deletions(-)

Thanks!

I suspect there is more cleanup of 'hugetlb page table helpers' that
could be done.

Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz