Home
last modified time | relevance | path

Searched refs:newflags (Results 1 – 2 of 2) sorted by relevance

/mm/
Dmprotect.c400 unsigned long start, unsigned long end, unsigned long newflags) in mprotect_fixup() argument
410 if (newflags == oldflags) { in mprotect_fixup()
422 (newflags & VM_ACCESS_FLAGS) == 0) { in mprotect_fixup()
423 pgprot_t new_pgprot = vm_get_page_prot(newflags); in mprotect_fixup()
437 if (newflags & VM_WRITE) { in mprotect_fixup()
439 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
447 newflags |= VM_ACCOUNT; in mprotect_fixup()
455 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup()
460 VM_WARN_ON((vma->vm_flags ^ newflags) & ~VM_SOFTDIRTY); in mprotect_fixup()
484 WRITE_ONCE(vma->vm_flags, newflags); in mprotect_fixup()
[all …]
Dmlock.c535 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_fixup() argument
541 int lock = !!(newflags & VM_LOCKED); in mlock_fixup()
544 if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || in mlock_fixup()
551 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup()
589 WRITE_ONCE(vma->vm_flags, newflags); in mlock_fixup()
622 vm_flags_t newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_vma_lock_flags() local
624 newflags |= flags; in apply_vma_lock_flags()
630 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
802 vm_flags_t newflags; in apply_mlockall_flags() local
804 newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_mlockall_flags()
[all …]