powerpc/64s: Allow double call of kernel_[un]map_linear_page()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 26 Sep 2022 07:57:25 +0000 (07:57 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:10 +0000 (19:22 +1000)
commitd7902d31cbc3bf72722768831a684b0286ccd523
tree353292c1a8bd9e34de528f9c93a82c99b33120c9
parent3e791d0f32b10eff9437822c6099c7a158560151
powerpc/64s: Allow double call of kernel_[un]map_linear_page()

If the page is already mapped resp. already unmapped, bail out.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Nicholas Miehlbradt <nicholas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926075726.2846-3-nicholas@linux.ibm.com
arch/powerpc/mm/book3s64/hash_utils.c