OSDN Git Service

mm/vma: make vma_is_accessible() available for general use
[tomoyo/tomoyo-test1.git] / kernel / sched / fair.c
index d7fb20a..1ea3ddd 100644 (file)
@@ -2799,7 +2799,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 {