summaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-10-12 09:40:45 +0200
committerVasily Gorbik <gor@linux.ibm.com>2023-10-23 18:21:22 +0200
commitcca12b427d43bb57be207d634e1d44e9792d1cb4 (patch)
tree00cbfad02f0b625b0cdf1af11f791eb8e6b1e7cf /arch/s390/mm
parentf67c2da9f1c2d56e3adab342fc39c00c0c5ec790 (diff)
downloadlinux-stable-cca12b427d43bb57be207d634e1d44e9792d1cb4.tar.gz
linux-stable-cca12b427d43bb57be207d634e1d44e9792d1cb4.tar.bz2
linux-stable-cca12b427d43bb57be207d634e1d44e9792d1cb4.zip
s390/mm,fault: remove VM_FAULT_PFAULT
Handling of VM_FAULT_PFAULT and VM_FAULT_BADCONTEXT is nearly identical; the only difference is within do_no_context() where however the fault_type (KERNEL_FAULT vs GMAP_FAULT) makes sure that both types will be handled differently. Therefore it is possible to get rid of VM_FAULT_PFAULT and use VM_FAULT_BADCONTEXT instead. Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r--arch/s390/mm/fault.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index c37e28fbfbef..ee8a40917592 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -53,7 +53,6 @@
#define VM_FAULT_BADMAP ((__force vm_fault_t)0x40000000)
#define VM_FAULT_BADACCESS ((__force vm_fault_t)0x20000000)
#define VM_FAULT_SIGNAL ((__force vm_fault_t)0x10000000)
-#define VM_FAULT_PFAULT ((__force vm_fault_t)0x8000000)
enum fault_type {
KERNEL_FAULT,
@@ -294,7 +293,6 @@ static void do_fault_error(struct pt_regs *regs, vm_fault_t fault)
}
fallthrough;
case VM_FAULT_BADCONTEXT:
- case VM_FAULT_PFAULT:
do_no_context(regs, fault);
break;
case VM_FAULT_SIGNAL:
@@ -459,7 +457,7 @@ retry:
* mmap_lock has not been released
*/
current->thread.gmap_pfault = 1;
- fault = VM_FAULT_PFAULT;
+ fault = VM_FAULT_BADCONTEXT;
goto out_up;
}
flags &= ~FAULT_FLAG_RETRY_NOWAIT;