powerpc/mm/radix: Refactor radix__mark_rodata_ro()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Jul 2017 06:51:21 +0000 (16:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 18 Jul 2017 08:51:34 +0000 (18:51 +1000)
commitb134bd90286dc9f2952c35a91ab405474ca9374c
treeb131270d9caf84f46fc043aa02c12abe9414ea80
parent76fc0cfcc5b0f520062ca6d7225b224d4a8aa828
powerpc/mm/radix: Refactor radix__mark_rodata_ro()

Move the core logic into a helper, so we can use it for changing permissions
other than _PAGE_WRITE.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c