Lines Matching refs:vm_flags
179 if ((vma->vm_flags & (VM_WRITE | VM_SHARED)) == VM_WRITE) in __mlock_vma_pages_range()
186 if (vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC)) in __mlock_vma_pages_range()
222 BUG_ON(!(vma->vm_flags & VM_LOCKED)); in mlock_vma_pages_range()
227 if (vma->vm_flags & (VM_IO | VM_PFNMAP)) in mlock_vma_pages_range()
230 if (!((vma->vm_flags & (VM_DONTEXPAND | VM_RESERVED)) || in mlock_vma_pages_range()
251 vma->vm_flags &= ~VM_LOCKED; /* and don't come back! */ in mlock_vma_pages_range()
279 vma->vm_flags &= ~VM_LOCKED; in munlock_vma_pages_range()
326 if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || in mlock_fixup()
366 vma->vm_flags = newflags; in mlock_fixup()
401 newflags = vma->vm_flags | VM_LOCKED; in do_mlock()
456 if (vma->vm_flags & (VM_IO | VM_PFNMAP)) in do_mlock_pages()
538 newflags = vma->vm_flags | VM_LOCKED; in do_mlockall()