Skip to content
Commit 2c9e0a6f authored by Ram Pai's avatar Ram Pai Committed by Michael Ellerman
Browse files

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: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarBalbir Singh <bsingharora@gmail.com>
Signed-off-by: default avatarRam Pai <linuxram@us.ibm.com>
[mpe: Fold in #if VM_PKEY_BIT4 as noticed by Dave Hansen]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 5212213a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment