OSDN Git Service

readahead: fault retry breaks mmap file read random detection
[uclinux-h8/linux.git] / arch / mips / mm / fault.c
index c14f6df..9f51348 100644 (file)
@@ -171,6 +171,7 @@ good_area:
                }
                if (fault & VM_FAULT_RETRY) {
                        flags &= ~FAULT_FLAG_ALLOW_RETRY;
+                       flags |= FAULT_FLAG_TRIED;
 
                        /*
                         * No need to up_read(&mm->mmap_sem) as we would