Messages in this thread Patch in this message |  | | | From | Andi Kleen <> | | Subject | [PATCH] [10/31] HWPOISON: comment dirty swapcache pages | | Date | Tue, 8 Dec 2009 22:16:26 +0100 (CET) |
| |
From: Wu Fengguang <fengguang.wu@intel.com>
AK: Improve comment
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
--- mm/memory.c | 4 ++++ 1 file changed, 4 insertions(+) Index: linux/mm/memory.c =================================================================== --- linux.orig/mm/memory.c +++ linux/mm/memory.c @@ -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;
|  |