Searched refs:lock_limit (Results 1 – 3 of 3) sorted by relevance
614 unsigned long lock_limit; in do_mlock() local625 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()626 lock_limit >>= PAGE_SHIFT; in do_mlock()634 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()727 unsigned long lock_limit; in SYSCALL_DEFINE1() local739 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()740 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()745 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()773 unsigned long lock_limit, locked; in user_shm_lock() local777 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()[all …]
386 unsigned long locked, lock_limit; in vma_to_resize() local388 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()390 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
1286 unsigned long locked, lock_limit; in mlock_future_check() local1292 lock_limit = rlimit(RLIMIT_MEMLOCK); in mlock_future_check()1293 lock_limit >>= PAGE_SHIFT; in mlock_future_check()1294 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()