mm, powerpc, x86: introduce an additional vma bit for powerpc pkey
authorRam Pai <linuxram@us.ibm.com>
Tue, 27 Mar 2018 09:09:27 +0000 (02:09 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 May 2018 01:50:27 +0000 (11:50 +1000)
commit2c9e0a6fa2bb75697981825153128f43b32f6d08
tree663f1f94021b3c9bd6638a8ff6f83ad2d47c6868
parent5212213aa5a2359dd0474c9dab22b6220b591fe1
mm, powerpc, x86: introduce an additional vma bit for powerpc pkey

Currently only 4bits are allocated in the vma flags to hold 16
keys. This is sufficient for x86. PowerPC  supports  32  keys,
which needs 5bits. This patch allocates an  additional bit.

Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
[mpe: Fold in #if VM_PKEY_BIT4 as noticed by Dave Hansen]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
fs/proc/task_mmu.c
include/linux/mm.h