Messages in this thread | | | Date | Tue, 26 May 2009 15:18:38 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH] [7/16] POISON: Add basic support for poisoned pages in fault handler |
| |
On Tue, May 26, 2009 at 09:55:26PM +0900, Hidehiro Kawai wrote: > > + print_bad_pte(vma, address, pte, NULL); > > + ret = VM_FAULT_OOM; > > + } > > goto out; > > } > > delayacct_set_flag(DELAYACCT_PF_SWAPIN); > > @@ -2451,6 +2459,9 @@ > > /* Had to read the page from swap area: Major fault */ > > ret = VM_FAULT_MAJOR; > > count_vm_event(PGMAJFAULT); > > + } else if (PagePoison(page)) { > > + ret = VM_FAULT_POISON; > > delayacct_clear_flag(DELAYACCT_PF_SWAPIN) would be needed here.
Thanks for the review. Added.
Must have been a forward port error, I could swear that wasn't there yet when I wrote this originally :)
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |