diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-09-16 05:50:11 -0400 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-09-16 05:50:11 -0400 |
commit | 888b9f7c58ebe8303bad817cd554df887a683957 (patch) | |
tree | ebd01e55f5a6631a463fbb863adfbe9dcf49ad7d /include/linux/rmap.h | |
parent | 14fa31b89c5ae79e4131da41761378a6df674352 (diff) |
HWPOISON: Handle hardware poisoned pages in try_to_unmap
When a page has the poison bit set replace the PTE with a poison entry.
This causes the right error handling to be done later when a process runs
into it.
v2: add a new flag to not do that (needed for the memory-failure handler
later) (Fengguang)
v3: remove unnecessary is_migration_entry() test (Fengguang, Minchan)
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r-- | include/linux/rmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 4c4a2d4d289e..ce989f1fc2ed 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
@@ -93,6 +93,7 @@ enum ttu_flags { | |||
93 | 93 | ||
94 | TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */ | 94 | TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */ |
95 | TTU_IGNORE_ACCESS = (1 << 9), /* don't age */ | 95 | TTU_IGNORE_ACCESS = (1 << 9), /* don't age */ |
96 | TTU_IGNORE_HWPOISON = (1 << 10),/* corrupted page is recoverable */ | ||
96 | }; | 97 | }; |
97 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) | 98 | #define TTU_ACTION(x) ((x) & TTU_ACTION_MASK) |
98 | 99 | ||