Lines Matching refs:newflags
364 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_vma_pages_range() argument
381 if (newflags & VM_LOCKED) in mlock_vma_pages_range()
382 newflags |= VM_IO; in mlock_vma_pages_range()
383 vm_flags_reset_once(vma, newflags); in mlock_vma_pages_range()
389 if (newflags & VM_IO) { in mlock_vma_pages_range()
390 newflags &= ~VM_IO; in mlock_vma_pages_range()
391 vm_flags_reset_once(vma, newflags); in mlock_vma_pages_range()
406 unsigned long end, vm_flags_t newflags) in mlock_fixup() argument
414 if (newflags == oldflags || (oldflags & VM_SPECIAL) || in mlock_fixup()
421 *prev = vma_merge(vmi, mm, *prev, start, end, newflags, in mlock_fixup()
446 if (!(newflags & VM_LOCKED)) in mlock_fixup()
458 if ((newflags & VM_LOCKED) && (oldflags & VM_LOCKED)) { in mlock_fixup()
460 vm_flags_reset(vma, newflags); in mlock_fixup()
462 mlock_vma_pages_range(vma, start, end, newflags); in mlock_fixup()
495 vm_flags_t newflags; in apply_vma_lock_flags() local
500 newflags = vma->vm_flags & ~VM_LOCKED_MASK; in apply_vma_lock_flags()
501 newflags |= flags; in apply_vma_lock_flags()
506 error = mlock_fixup(&vmi, vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
682 vm_flags_t newflags; in apply_mlockall_flags() local
684 newflags = vma->vm_flags & ~VM_LOCKED_MASK; in apply_mlockall_flags()
685 newflags |= to_add; in apply_mlockall_flags()
689 newflags); in apply_mlockall_flags()