diff options
-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 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; |