]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/hash: Use the pte_t address from the caller
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 5 May 2020 07:17:12 +0000 (12:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 May 2020 11:20:14 +0000 (21:20 +1000)
commitf65a9e834906c13a933145f283be504e4d7dac1e
treeddf1f301ca478c1aa3a82cf1c64c639e2921be86
parent37aba0b240181c81d40d2428505c481d76a3392a
powerpc/book3s64/hash: Use the pte_t address from the caller

Don't fetch the pte value using lockless page table walk. Instead use the value from the
caller. hash_preload is called with ptl lock held. So it is safe to use the
pte_t address directly.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200505071729.54912-6-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/hash_utils.c