Home
last modified time | relevance | path

Searched refs:lock_limit (Results 1 – 3 of 3) sorted by relevance

/mm/
Dmlock.c614 unsigned long lock_limit; in do_mlock() local
625 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() local
739 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() local
777 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
[all …]
Dmremap.c386 unsigned long locked, lock_limit; in vma_to_resize() local
388 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()
390 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
Dmmap.c1286 unsigned long locked, lock_limit; in mlock_future_check() local
1292 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()