s390/mm: try to avoid storage key operation in ptep_set_access_flags
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 29 Sep 2015 10:51:40 +0000 (12:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:07 +0000 (14:32 +0200)
commit395e6aa1d0ffbc493a04469aa8f6751ed2aad8c5
tree2ce127f327fc349098908385a0b564ae6136887f
parent5da7667c035f3a711ec8d0a3997254807dd8bc6d
s390/mm: try to avoid storage key operation in ptep_set_access_flags

The call to pgste_set_key in ptep_set_access_flags can be avoided
if the old pte is found to be valid at the time the new access
rights are set. The function that created the old, valid pte already
completed the required storage key operation.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h