Home
last modified time | relevance | path

Searched refs:can_lock (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/hfi1/
Duser_pages.c78 bool can_lock = capable(CAP_IPC_LOCK); in hfi1_can_pin_pages() local
99 if (pinned + npages >= ulimit && !can_lock) in hfi1_can_pin_pages()
102 return ((nlocked + npages) <= size) || can_lock; in hfi1_can_pin_pages()
/Linux-v4.19/fs/ocfs2/
Dinode.c424 int status, can_lock, lock_level = 0; in ocfs2_read_locked_inode() local
460 can_lock = !(args->fi_flags & OCFS2_FI_FLAG_SYSFILE) in ocfs2_read_locked_inode()
465 (unsigned long long)OCFS2_I(inode)->ip_blkno, can_lock); in ocfs2_read_locked_inode()
485 if (can_lock) { in ocfs2_read_locked_inode()
508 if (can_lock) { in ocfs2_read_locked_inode()
563 if (can_lock) { in ocfs2_read_locked_inode()
578 if (can_lock) in ocfs2_read_locked_inode()