]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: provide mm_struct and address to huge_ptep_get()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 2 Jul 2024 13:51:20 +0000 (15:51 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Jul 2024 22:52:15 +0000 (15:52 -0700)
commite6c0c03245b14d6c205814aee67128257d0bea84
tree7d814f43ae1356b12e3762f8b9d572b91adf8e9a
parent18d095b2556e5e1292003c8e9f5d845ed42ef89b
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>
21 files changed:
arch/arm/include/asm/hugetlb-3level.h
arch/arm64/include/asm/hugetlb.h
arch/arm64/mm/hugetlbpage.c
arch/riscv/include/asm/hugetlb.h
arch/riscv/mm/hugetlbpage.c
arch/s390/include/asm/hugetlb.h
arch/s390/mm/hugetlbpage.c
fs/hugetlbfs/inode.c
fs/proc/task_mmu.c
fs/userfaultfd.c
include/asm-generic/hugetlb.h
include/linux/swapops.h
mm/damon/vaddr.c
mm/gup.c
mm/hmm.c
mm/hugetlb.c
mm/memory-failure.c
mm/mempolicy.c
mm/migrate.c
mm/mincore.c
mm/userfaultfd.c