powerpc: implementation for arch_vma_access_permitted()
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:39 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:04 +0000 (22:59 +1100)
commit1137573acfe4c67cdd265bbfbd2d66ebe87d6325
treeb1607abe00f500dd4efa56371eb659adb1bf2b68
parentbca7aacfe8be121ecefb3be609420220b0820c2c
powerpc: implementation for arch_vma_access_permitted()

This patch provides the implementation for
arch_vma_access_permitted(). Returns true if the
requested access is allowed by pkey associated with the
vma.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/mm/pkeys.c