Searched refs:lock_limit (Results 1 – 3 of 3) sorted by relevance
674 unsigned long lock_limit; in do_mlock() local685 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()686 lock_limit >>= PAGE_SHIFT; in do_mlock()693 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock()705 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()801 unsigned long lock_limit; in SYSCALL_DEFINE1() local811 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()812 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()818 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()847 unsigned long lock_limit, locked; in user_shm_lock() local[all …]
476 unsigned long locked, lock_limit; in vma_to_resize() local478 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()480 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
1351 unsigned long locked, lock_limit; in mlock_future_check() local1357 lock_limit = rlimit(RLIMIT_MEMLOCK); in mlock_future_check()1358 lock_limit >>= PAGE_SHIFT; in mlock_future_check()1359 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in mlock_future_check()