aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-12-16 06:19:58 -0500
committerAndi Kleen <ak@linux.intel.com>2009-12-16 06:19:58 -0500
commit71f72525dfaaec012e23089c73331654ea7b12d3 (patch)
tree70a8c7831ddab19be1ee8430611ad653f3e764f3 /mm
parentdb0480b3a61bd6ad86ead3b8bbad094ab0996932 (diff)
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')
-rw-r--r--mm/memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c
index a54b2c498444..db09106ed44b 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,
2553 ret = VM_FAULT_MAJOR; 2553 ret = VM_FAULT_MAJOR;
2554 count_vm_event(PGMAJFAULT); 2554 count_vm_event(PGMAJFAULT);
2555 } else if (PageHWPoison(page)) { 2555 } else if (PageHWPoison(page)) {
2556 /*
2557 * hwpoisoned dirty swapcache pages are kept for killing
2558 * owner processes (which may be unknown at hwpoison time)
2559 */
2556 ret = VM_FAULT_HWPOISON; 2560 ret = VM_FAULT_HWPOISON;
2557 delayacct_clear_flag(DELAYACCT_PF_SWAPIN); 2561 delayacct_clear_flag(DELAYACCT_PF_SWAPIN);
2558 goto out_release; 2562 goto out_release;