s390/vmem: cleanup empty page tables
authorDavid Hildenbrand <david@redhat.com>
Wed, 22 Jul 2020 09:45:55 +0000 (11:45 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Jul 2020 08:33:59 +0000 (10:33 +0200)
commitb9ff81003cf1a0b12b8d60b6ef33a34e84dfe7ac
tree523f19c8854820a441891769c062af88cba1c8ca
parentaa18e0e65800bf3250b23914a28e0e3fd9cadec2
s390/vmem: cleanup empty page tables

Let's cleanup empty page tables. Consider only page tables that fully
fall into the idendity mapping and the vmemmap range.

As there are no valid accesses to vmem/vmemmap within non-populated ranges,
the single tlb flush at the end should be sufficient.

Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200722094558.9828-7-david@redhat.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/vmem.c