aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/mempolicy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 973434eff9dc..27d135408a22 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -644,7 +644,8 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,
644 644
645 if (flags & MPOL_MF_LAZY) { 645 if (flags & MPOL_MF_LAZY) {
646 /* Similar to task_numa_work, skip inaccessible VMAs */ 646 /* Similar to task_numa_work, skip inaccessible VMAs */
647 if (vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)) 647 if (vma_migratable(vma) &&
648 vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))
648 change_prot_numa(vma, start, endvma); 649 change_prot_numa(vma, start, endvma);
649 return 1; 650 return 1;
650 } 651 }