Skip to content

Commit

Permalink
mm/mempolicy.c: get rid of duplicated check for vma(VM_PFNMAP) in que…
Browse files Browse the repository at this point in the history
…ue_pages_range()

This check was introduced as part of
   6f4576e ("mempolicy: apply page table walker on queue_pages_range()")

which got duplicated by
   48684a6 ("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>
  • Loading branch information
Aristeu Rozanski authored and Linus Torvalds committed Sep 8, 2015
1 parent 95cf82e commit acda0c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit acda0c3

Please sign in to comment.