commit | d2e0d2c51adf348683e9f87da8298042a519deec | [log] [tgz] |
---|---|---|
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Jul 19 14:49:42 2017 +1000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Thu Aug 03 16:06:50 2017 +1000 |
tree | 4e928b134ad6a4109f83d4945806135a56f6a14a | |
parent | b15021d994f09e9309ad37c1821ce4e3ee0cd62d [diff] |
powerpc/mm: Set fault flags earlier Move out the code that sets FAULT_FLAG_WRITE so the block that check access permissions can be extracted. While at it also set FAULT_FLAG_INSTRUCTION which will be used for protection keys. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>