Searched refs:newflags (Results 1 – 2 of 2) sorted by relevance
/mm/ |
D | mprotect.c | 280 unsigned long end, unsigned long newflags) in prot_none_walk() argument 282 pgprot_t new_pgprot = vm_get_page_prot(newflags); in prot_none_walk() 296 unsigned long start, unsigned long end, unsigned long newflags) in mprotect_fixup() argument 306 if (newflags == oldflags) { in mprotect_fixup() 318 (newflags & (VM_READ|VM_WRITE|VM_EXEC)) == 0) { in mprotect_fixup() 319 error = prot_none_walk(vma, start, end, newflags); in mprotect_fixup() 330 if (newflags & VM_WRITE) { in mprotect_fixup() 336 newflags |= VM_ACCOUNT; in mprotect_fixup() 344 *pprev = vma_merge(mm, *pprev, start, end, newflags, in mprotect_fixup() 371 vma->vm_flags = newflags; in mprotect_fixup() [all …]
|
D | mlock.c | 500 unsigned long start, unsigned long end, vm_flags_t newflags) in mlock_fixup() argument 506 int lock = !!(newflags & VM_LOCKED); in mlock_fixup() 509 if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || in mlock_fixup() 515 *prev = vma_merge(mm, *prev, start, end, newflags, vma->anon_vma, in mlock_fixup() 553 vma->vm_flags = newflags; in mlock_fixup() 585 vm_flags_t newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_vma_lock_flags() local 587 newflags |= flags; in apply_vma_lock_flags() 593 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags() 712 vm_flags_t newflags; in apply_mlockall_flags() local 714 newflags = vma->vm_flags & VM_LOCKED_CLEAR_MASK; in apply_mlockall_flags() [all …]
|