OSDN Git Service

readahead: fault retry breaks mmap file read random detection
[uclinux-h8/linux.git] / arch / m68k / mm / fault.c
index aeebbb7..a563727 100644 (file)
@@ -170,6 +170,7 @@ good_area:
                        /* Clear FAULT_FLAG_ALLOW_RETRY to avoid any risk
                         * of starvation. */
                        flags &= ~FAULT_FLAG_ALLOW_RETRY;
+                       flags |= FAULT_FLAG_TRIED;
 
                        /*
                         * No need to up_read(&mm->mmap_sem) as we would