mm/vma: make vma_is_accessible() available for general use
[platform/kernel/linux-rpi.git] / kernel / sched / fair.c
index 2f81e4a..b86203e 100644 (file)
@@ -2569,7 +2569,7 @@ static void task_numa_work(struct callback_head *work)
                 * Skip inaccessible VMAs to avoid any confusion between
                 * PROT_NONE and NUMA hinting ptes
                 */
-               if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
+               if (!vma_is_accessible(vma))
                        continue;
 
                do {