]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
csky: remove BS check for FAULT_FLAG_ALLOW_RETRY
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 1 Feb 2023 21:52:54 +0000 (16:52 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Sep 2025 19:15:07 +0000 (15:15 -0400)
flags are initialized as FAULT_FLAG_DEFAULT, and the only thing done
to that afterwards is |=; since FAULT_FLAG_DEFAULT already includes
FAULT_FLAG_ALLOW_RETRY, it's guaranteed to remain there all along.

Reviewed-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/csky/mm/fault.c

index a885518ce1dd285671e1e06d548cd91aa7f855f5..a6ca7dff421532086cb0987b187ec86cf9243076 100644 (file)
@@ -277,7 +277,7 @@ retry:
        if (fault & VM_FAULT_COMPLETED)
                return;
 
-       if (unlikely((fault & VM_FAULT_RETRY) && (flags & FAULT_FLAG_ALLOW_RETRY))) {
+       if (unlikely(fault & VM_FAULT_RETRY)) {
                flags |= FAULT_FLAG_TRIED;
 
                /*