CC: Andi Kleen Signed-off-by: Wu Fengguang --- mm/memory.c | 4 ++++ 1 file changed, 4 insertions(+) --- linux-mm.orig/mm/memory.c 2009-11-24 16:50:44.000000000 +0800 +++ linux-mm/mm/memory.c 2009-11-30 10:35:39.000000000 +0800 @@ -2540,6 +2540,10 @@ static int do_swap_page(struct mm_struct 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; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org