s390x/mm: simplify gmap_protect_rmap()
authorDavid Hildenbrand <david@redhat.com>
Tue, 23 Jan 2018 21:26:18 +0000 (22:26 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 24 Jan 2018 15:16:57 +0000 (16:16 +0100)
commit5c528db0df6999cc7bf2151b0f9fb6446109ec54
tree73b49fc926718b5ce526a5914ed2c94f72d96126
parent15e5020e575d0c1a4eddd99bf7ffdc1f34a3b17d
s390x/mm: simplify gmap_protect_rmap()

We never call it with anything but PROT_READ. This is a left over from
an old prototype. For creation of shadow page tables, we always only
have to protect the original table in guest memory from write accesses,
so we can properly invalidate the shadow on writes. Other protections
are not needed.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180123212618.32611-1-david@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/mm/gmap.c