Home
last modified time | relevance | path

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

/mm/
Dmlock.c674 unsigned long lock_limit; in do_mlock() local
685 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() local
811 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 …]
Dmremap.c476 unsigned long locked, lock_limit; in vma_to_resize() local
478 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()
480 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
Dmmap.c1351 unsigned long locked, lock_limit; in mlock_future_check() local
1357 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()