diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-12-16 12:19:58 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 12:19:58 +0100 |
commit | 71f72525dfaaec012e23089c73331654ea7b12d3 (patch) | |
tree | 70a8c7831ddab19be1ee8430611ad653f3e764f3 /mm/memory.c | |
parent | db0480b3a61bd6ad86ead3b8bbad094ab0996932 (diff) | |
download | op-kernel-dev-71f72525dfaaec012e23089c73331654ea7b12d3.zip op-kernel-dev-71f72525dfaaec012e23089c73331654ea7b12d3.tar.gz |
HWPOISON: comment dirty swapcache pages
AK: Improve comment
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c index a54b2c4..db09106 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2553,6 +2553,10 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, ret = VM_FAULT_MAJOR; count_vm_event(PGMAJFAULT); } else if (PageHWPoison(page)) { + /* + * hwpoisoned dirty swapcache pages are kept for killing + * owner processes (which may be unknown at hwpoison time) + */ ret = VM_FAULT_HWPOISON; delayacct_clear_flag(DELAYACCT_PF_SWAPIN); goto out_release; |