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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 9a72cc78e6b8..082b68cb5ffe 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -685,11 +685,12 @@ static inline int page_mapped(struct page *page)
685#define VM_FAULT_SIGBUS 0x0002 685#define VM_FAULT_SIGBUS 0x0002
686#define VM_FAULT_MAJOR 0x0004 686#define VM_FAULT_MAJOR 0x0004
687#define VM_FAULT_WRITE 0x0008 /* Special case for get_user_pages */ 687#define VM_FAULT_WRITE 0x0008 /* Special case for get_user_pages */
688#define VM_FAULT_HWPOISON 0x0010 /* Hit poisoned page */
688 689
689#define VM_FAULT_NOPAGE 0x0100 /* ->fault installed the pte, not return page */ 690#define VM_FAULT_NOPAGE 0x0100 /* ->fault installed the pte, not return page */
690#define VM_FAULT_LOCKED 0x0200 /* ->fault locked the returned page */ 691#define VM_FAULT_LOCKED 0x0200 /* ->fault locked the returned page */
691 692
692#define VM_FAULT_ERROR (VM_FAULT_OOM | VM_FAULT_SIGBUS) 693#define VM_FAULT_ERROR (VM_FAULT_OOM | VM_FAULT_SIGBUS | VM_FAULT_HWPOISON)
693 694
694/* 695/*
695 * Can be called by the pagefault handler when it gets a VM_FAULT_OOM. 696 * Can be called by the pagefault handler when it gets a VM_FAULT_OOM.