Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/mempolicy.c: get rid of duplicated check for vma(VM_PFNMAP) in queue_pages_range()

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()

Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Aristeu Rozanski and committed by
Linus Torvalds
acda0c33 95cf82ec

-3
-3
mm/mempolicy.c
··· 608 608 609 609 qp->prev = vma; 610 610 611 - if (vma->vm_flags & VM_PFNMAP) 612 - return 1; 613 - 614 611 if (flags & MPOL_MF_LAZY) { 615 612 /* Similar to task_numa_work, skip inaccessible VMAs */ 616 613 if (vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))