aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 5411cb7442de..f57e55782d7d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1182,6 +1182,9 @@ static inline void clear_page_pfmemalloc(struct page *page)
1182#define VM_FAULT_RETRY 0x0400 /* ->fault blocked, must retry */ 1182#define VM_FAULT_RETRY 0x0400 /* ->fault blocked, must retry */
1183#define VM_FAULT_FALLBACK 0x0800 /* huge page fault failed, fall back to small */ 1183#define VM_FAULT_FALLBACK 0x0800 /* huge page fault failed, fall back to small */
1184#define VM_FAULT_DONE_COW 0x1000 /* ->fault has fully handled COW */ 1184#define VM_FAULT_DONE_COW 0x1000 /* ->fault has fully handled COW */
1185#define VM_FAULT_NEEDDSYNC 0x2000 /* ->fault did not modify page tables
1186 * and needs fsync() to complete (for
1187 * synchronous page faults in DAX) */
1185 1188
1186#define VM_FAULT_ERROR (VM_FAULT_OOM | VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV | \ 1189#define VM_FAULT_ERROR (VM_FAULT_OOM | VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV | \
1187 VM_FAULT_HWPOISON | VM_FAULT_HWPOISON_LARGE | \ 1190 VM_FAULT_HWPOISON | VM_FAULT_HWPOISON_LARGE | \
@@ -1199,7 +1202,8 @@ static inline void clear_page_pfmemalloc(struct page *page)
1199 { VM_FAULT_LOCKED, "LOCKED" }, \ 1202 { VM_FAULT_LOCKED, "LOCKED" }, \
1200 { VM_FAULT_RETRY, "RETRY" }, \ 1203 { VM_FAULT_RETRY, "RETRY" }, \
1201 { VM_FAULT_FALLBACK, "FALLBACK" }, \ 1204 { VM_FAULT_FALLBACK, "FALLBACK" }, \
1202 { VM_FAULT_DONE_COW, "DONE_COW" } 1205 { VM_FAULT_DONE_COW, "DONE_COW" }, \
1206 { VM_FAULT_NEEDDSYNC, "NEEDDSYNC" }
1203 1207
1204/* Encode hstate index for a hwpoisoned large page */ 1208/* Encode hstate index for a hwpoisoned large page */
1205#define VM_FAULT_SET_HINDEX(x) ((x) << 12) 1209#define VM_FAULT_SET_HINDEX(x) ((x) << 12)