mm: merge pte_mkhuge() call into arch_make_huge_pte()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Wed, 16 Feb 2022 04:31:12 +0000 (15:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Feb 2022 04:31:12 +0000 (15:31 +1100)
commit8ac6487d4d76996e42d0e7a9a524d649ddc8b24f
treea7c11cf5fdea6812eff044828eb304e281de5ad2
parentdbe67be3d9f30a56d41ef643582420703cc4333d
mm: merge pte_mkhuge() call into arch_make_huge_pte()

Each call into pte_mkhuge() is invariably followed by
arch_make_huge_pte().  Instead arch_make_huge_pte() can accommodate
pte_mkhuge() at the beginning.  This updates generic fallback stub for
arch_make_huge_pte() and available platforms definitions.  This makes huge
pte creation much cleaner and easier to follow.

Link: https://lkml.kernel.org/r/1643860669-26307-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/arm64/mm/hugetlbpage.c
arch/powerpc/include/asm/nohash/32/hugetlb-8xx.h
arch/sparc/mm/hugetlbpage.c
include/linux/hugetlb.h
mm/hugetlb.c
mm/vmalloc.c