Searched refs:can_lock (Results 1 – 2 of 2) sorted by relevance
36 bool can_lock = capable(CAP_IPC_LOCK); in hfi1_can_pin_pages() local55 if (pinned + npages >= ulimit && !can_lock) in hfi1_can_pin_pages()58 return ((nlocked + npages) <= size) || can_lock; in hfi1_can_pin_pages()
408 int status, can_lock, lock_level = 0; in ocfs2_read_locked_inode() local444 can_lock = !(args->fi_flags & OCFS2_FI_FLAG_SYSFILE) in ocfs2_read_locked_inode()449 (unsigned long long)OCFS2_I(inode)->ip_blkno, can_lock); in ocfs2_read_locked_inode()469 if (can_lock) { in ocfs2_read_locked_inode()492 if (can_lock) { in ocfs2_read_locked_inode()547 if (can_lock) { in ocfs2_read_locked_inode()562 if (can_lock) in ocfs2_read_locked_inode()