]> git.openpandora.org Git - pandora-kernel.git/commitdiff
HWPOISON: Handle hardware poisoned pages in try_to_unmap
authorAndi Kleen <ak@linux.intel.com>
Wed, 16 Sep 2009 09:50:11 +0000 (11:50 +0200)
committerAndi Kleen <ak@linux.intel.com>
Wed, 16 Sep 2009 09:50:11 +0000 (11:50 +0200)
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>
include/linux/rmap.h
mm/rmap.c

Simple merge
diff --cc mm/rmap.c
Simple merge