Searched refs:lock_limit (Results 1 – 7 of 7) sorted by relevance
476 unsigned long lock_limit; in SYSCALL_DEFINE2() local491 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE2()492 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE2()495 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in SYSCALL_DEFINE2()542 unsigned long lock_limit; in SYSCALL_DEFINE1() local556 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()557 lock_limit >>= PAGE_SHIFT; in SYSCALL_DEFINE1()560 if (!(flags & MCL_CURRENT) || (current->mm->total_vm <= lock_limit) || in SYSCALL_DEFINE1()590 unsigned long lock_limit, locked; in user_shm_lock() local594 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()[all …]
293 unsigned long locked, lock_limit; in vma_to_resize() local295 lock_limit = rlimit(RLIMIT_MEMLOCK); in vma_to_resize()297 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in vma_to_resize()
1038 unsigned long locked, lock_limit; in do_mmap_pgoff() local1041 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mmap_pgoff()1042 lock_limit >>= PAGE_SHIFT; in do_mmap_pgoff()1043 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in do_mmap_pgoff()2200 unsigned long locked, lock_limit; in do_brk() local2203 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_brk()2204 lock_limit >>= PAGE_SHIFT; in do_brk()2205 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) in do_brk()
57 unsigned long lock_limit; in __qib_get_user_pages() local61 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __qib_get_user_pages()63 if (num_pages > lock_limit && !capable(CAP_IPC_LOCK)) { in __qib_get_user_pages()
59 unsigned long lock_limit; in __ipath_get_user_pages() local63 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in __ipath_get_user_pages()65 if (num_pages > lock_limit) { in __ipath_get_user_pages()
85 unsigned long lock_limit; in ib_umem_get() local140 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()142 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
3725 unsigned long locked, lock_limit; in perf_mmap() local3783 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap()3784 lock_limit >>= PAGE_SHIFT; in perf_mmap()3787 if ((locked > lock_limit) && perf_paranoid_tracepoint_raw() && in perf_mmap()