Searched refs:lock_limit (Results 1 – 6 of 6) sorted by relevance
97 unsigned long locked, lock_limit; in qib_get_user_pages() local101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()104 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in qib_get_user_pages()
147 unsigned long lock_limit; in ib_umem_get() local197 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in ib_umem_get()200 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
93 unsigned long lock_limit; in usnic_uiom_get_pages() local127 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in usnic_uiom_get_pages()129 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
991 unsigned long lock_limit, sz2pin, nchunks, i; in vhost_vdpa_pa_map() local1012 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vhost_vdpa_pa_map()1013 if (npages + atomic64_read(&dev->mm->pinned_vm) > lock_limit) { in vhost_vdpa_pa_map()
806 unsigned long lock_limit; in incr_user_locked_vm() local810 lock_limit = task_rlimit(pages->source_task, RLIMIT_MEMLOCK) >> in incr_user_locked_vm()815 if (new_pages > lock_limit) in incr_user_locked_vm()
1033 unsigned long npages, lock_limit; in vduse_dev_reg_umem() local1056 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK)); in vduse_dev_reg_umem()1057 if (npages + atomic64_read(¤t->mm->pinned_vm) > lock_limit) in vduse_dev_reg_umem()