readahead: fault retry breaks mmap file read random detection
[firefly-linux-kernel-4.4.55.git] / include / linux / mm.h
index b01e585ab4b538e26b7aba4daca7b57d31c37f59..bcaab4e6fe913ac6e3f2ef0a6c83ea24d8972867 100644 (file)
@@ -161,6 +161,7 @@ extern pgprot_t protection_map[16];
 #define FAULT_FLAG_ALLOW_RETRY 0x08    /* Retry fault if blocking */
 #define FAULT_FLAG_RETRY_NOWAIT        0x10    /* Don't drop mmap_sem and wait when retrying */
 #define FAULT_FLAG_KILLABLE    0x20    /* The fault task is in SIGKILL killable region */
+#define FAULT_FLAG_TRIED       0x40    /* second try */
 
 /*
  * vm_fault is filled by the the pagefault handler and passed to the vma's