Lines Matching refs:locked
254 unsigned long new_len, unsigned long new_addr, bool *locked) in move_vma() argument
358 *locked = true; in move_vma()
394 unsigned long locked, lock_limit; in vma_to_resize() local
395 locked = mm->locked_vm << PAGE_SHIFT; in vma_to_resize()
397 locked += new_len - old_len; in vma_to_resize()
398 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
417 unsigned long new_addr, unsigned long new_len, bool *locked) in mremap_to() argument
462 ret = move_vma(vma, addr, old_len, new_len, new_addr, locked); in mremap_to()
500 bool locked = false; in SYSCALL_DEFINE5() local
527 &locked); in SYSCALL_DEFINE5()
569 locked = true; in SYSCALL_DEFINE5()
596 ret = move_vma(vma, addr, old_len, new_len, new_addr, &locked); in SYSCALL_DEFINE5()
601 locked = 0; in SYSCALL_DEFINE5()
604 if (locked && new_len > old_len) in SYSCALL_DEFINE5()