mm: provide mm_struct and address to huge_ptep_get()
On powerpc 8xx huge_ptep_get() will need to know whether the given ptep is a PTE entry or a PMD entry. This cannot be known with the PMD entry itself because there is no easy way to know it from the content of the entry. So huge_ptep_get() will need to know either the size of the page or get the pmd. In order to be consistent with huge_ptep_get_and_clear(), give mm and address to huge_ptep_get(). Link: https://lkml.kernel.org/r/cc00c70dd384298796a4e1b25d6c4eb306d3af85.1719928057.git.christophe.leroy@csgroup.eu Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by:
Oscar Salvador <osalvador@suse.de> Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Peter Xu <peterx@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- arch/arm/include/asm/hugetlb-3level.h 2 additions, 2 deletionsarch/arm/include/asm/hugetlb-3level.h
- arch/arm64/include/asm/hugetlb.h 1 addition, 1 deletionarch/arm64/include/asm/hugetlb.h
- arch/arm64/mm/hugetlbpage.c 1 addition, 1 deletionarch/arm64/mm/hugetlbpage.c
- arch/riscv/include/asm/hugetlb.h 1 addition, 1 deletionarch/riscv/include/asm/hugetlb.h
- arch/riscv/mm/hugetlbpage.c 1 addition, 1 deletionarch/riscv/mm/hugetlbpage.c
- arch/s390/include/asm/hugetlb.h 2 additions, 2 deletionsarch/s390/include/asm/hugetlb.h
- arch/s390/mm/hugetlbpage.c 2 additions, 2 deletionsarch/s390/mm/hugetlbpage.c
- fs/hugetlbfs/inode.c 1 addition, 1 deletionfs/hugetlbfs/inode.c
- fs/proc/task_mmu.c 5 additions, 5 deletionsfs/proc/task_mmu.c
- fs/userfaultfd.c 1 addition, 1 deletionfs/userfaultfd.c
- include/asm-generic/hugetlb.h 1 addition, 1 deletioninclude/asm-generic/hugetlb.h
- include/linux/swapops.h 2 additions, 2 deletionsinclude/linux/swapops.h
- mm/damon/vaddr.c 3 additions, 3 deletionsmm/damon/vaddr.c
- mm/gup.c 1 addition, 1 deletionmm/gup.c
- mm/hmm.c 1 addition, 1 deletionmm/hmm.c
- mm/hugetlb.c 22 additions, 22 deletionsmm/hugetlb.c
- mm/memory-failure.c 1 addition, 1 deletionmm/memory-failure.c
- mm/mempolicy.c 1 addition, 1 deletionmm/mempolicy.c
- mm/migrate.c 2 additions, 2 deletionsmm/migrate.c
- mm/mincore.c 1 addition, 1 deletionmm/mincore.c
Please register or sign in to comment