s390/mm,fault: remove VM_FAULT_BADCONTEXT
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 12 Oct 2023 07:40:49 +0000 (09:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Oct 2023 16:21:23 +0000 (18:21 +0200)
commit0f86ac4ba71329936c44ef71222f1c50284a8928
tree979fddd1dba4314d6a66fa7417ec5fc1681fb212
parent0f1a14e0348eb48e93e139af569944349b725f3f
s390/mm,fault: remove VM_FAULT_BADCONTEXT

Remove VM_FAULT_BADCONTEXT and instead call do_no_context() via
wrappers. This adds two new wrappers similar to what x86 has:

handle_fault_error() and handle_fault_error_nolock(). Both of them
simply call do_no_context(), while handle_fault_error() also unlocks
mmap lock, which avoids adding lots of mmap_read_unlock() calls with
this and subsequent patches.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/fault.c