Re: [PATCH] [7/16] POISON: Add basic support for poisoned pages in fault handler

Andi Kleen
2009-05-26T13:12:19Z

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.