• Hugh Dickins's avatar
    powerpc/hugetlb: pte_alloc_huge() · 5d991378
    Hugh Dickins authored
    pte_alloc_map() expects to be followed by pte_unmap(), but hugetlb omits
    that: to keep balance in future, use the recently added pte_alloc_huge()
    instead.  huge_pte_offset() is using __find_linux_pte(), which is using
    pte_offset_kernel() - don't rename that to _huge, it's more complicated.
    
    Link: https://lkml.kernel.org/r/36b4e5d-954b-8569-4fe2-bd1797362441@google.com
    
    Signed-off-by: default avatarHugh Dickins <hughd@google.com>
    Cc: Alexander Gordeev <agordeev@linux.ibm.com>
    Cc: Alexandre Ghiti <alexghiti@rivosinc.com>
    Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
    Cc: Chris Zankel <chris@zankel.net>
    Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>
    Cc: David Hildenbrand <david@redhat.com>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Greg Ungerer <gerg@linux-m68k.org>
    Cc: Heiko Carstens <hca@linux.ibm.com>
    Cc: Helge Deller <deller@gmx.de>
    Cc...
    5d991378
hugetlbpage.c 15.1 KB