On Wed, Jul 01, 2015 at 02:30:58PM -0400, Aristeu Rozanski wrote: > This check was introduced as part of > 6f4576e3687 - mempolicy: apply page table walker on queue_pages_range() > which got duplicated by > 48684a65b4e - mm: pagewalk: fix misbehavior of walk_page_range for vma(VM_PFNMAP) > by reintroducing it earlier on queue_page_test_walk() > > Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> > Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> > Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> > Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> > Cc: Dave Hansen <dave.hansen@xxxxxxxxx> > Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > Cc: Pavel Emelyanov <xemul@xxxxxxxxxxxxx> > Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > Signed-off-by: Aristeu Rozanski <aris@xxxxxxxxxx> Thank you for finding and fixing this. Acked-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index 99d4c1d..9885d07 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -608,9 +608,6 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end, > > qp->prev = vma; > > - if (vma->vm_flags & VM_PFNMAP) > - return 1; > - > if (flags & MPOL_MF_LAZY) { > /* Similar to task_numa_work, skip inaccessible VMAs */ > if (vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)) > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href