]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc6f9134ebb22c35ce0493ef4761d29dbf874503
tree73b49fc926718b5ce526a5914ed2c94f72d96126
parentc982f0e4010658641382bbb2ecd3471f309d24d6
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