]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c0c6704bdae7433ef19bb47d3d4b68e4e323948
tree353292c1a8bd9e34de528f9c93a82c99b33120c9
parent13d6397f351955bd1952d0a1a4ffa24df338124d
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