Lines Matching defs:locked
52 * the mmap_lock for read, and verify that the vma really is locked
131 * Page must be locked. This is a wrapper for try_to_munlock()
179 * page locked so that we can leave it on the unevictable lru list and not
563 * Keep track of amount of locked VM.
678 unsigned long locked;
692 locked = len >> PAGE_SHIFT;
697 locked += current->mm->locked_vm;
698 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) {
703 * and adjust locked count if necessary.
705 locked -= count_mm_mlocked_page_nr(current->mm,
710 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK))
852 unsigned long lock_limit, locked;
855 locked = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
862 locked + user->locked_shm > lock_limit && !capable(CAP_IPC_LOCK))
865 user->locked_shm += locked;