Lines Matching refs:level

126 static void ocfs2_dump_meta_lvb_info(u64 level,  in ocfs2_dump_meta_lvb_info()  argument
133 mlog(level, "LVB information for %s (called from %s:%u):\n", in ocfs2_dump_meta_lvb_info()
135 mlog(level, "version: %u, clusters: %u, generation: 0x%x\n", in ocfs2_dump_meta_lvb_info()
138 mlog(level, "size: %llu, uid %u, gid %u, mode 0x%x\n", in ocfs2_dump_meta_lvb_info()
142 mlog(level, "nlink %u, atime_packed 0x%llx, ctime_packed 0x%llx, " in ocfs2_dump_meta_lvb_info()
350 int level,
356 int level, unsigned long caller_ip);
359 int level) in ocfs2_cluster_unlock() argument
361 __ocfs2_cluster_unlock(osb, lockres, level, _RET_IP_); in ocfs2_cluster_unlock()
367 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level);
387 static inline int ocfs2_highest_compat_lock_level(int level);
447 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level, in ocfs2_update_lock_stats() argument
454 if (level == LKM_PRMODE) in ocfs2_update_lock_stats()
456 else if (level == LKM_EXMODE) in ocfs2_update_lock_stats()
493 int level, struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument
828 int level) in ocfs2_inc_holders() argument
832 switch(level) { in ocfs2_inc_holders()
845 int level) in ocfs2_dec_holders() argument
849 switch(level) { in ocfs2_dec_holders()
866 static inline int ocfs2_highest_compat_lock_level(int level) in ocfs2_highest_compat_lock_level() argument
870 if (level == DLM_LOCK_EX) in ocfs2_highest_compat_lock_level()
872 else if (level == DLM_LOCK_PR) in ocfs2_highest_compat_lock_level()
967 int level) in ocfs2_generic_handle_bast() argument
973 if (level > lockres->l_blocking) { in ocfs2_generic_handle_bast()
978 if (ocfs2_highest_compat_lock_level(level) < in ocfs2_generic_handle_bast()
982 lockres->l_blocking = level; in ocfs2_generic_handle_bast()
986 lockres->l_name, level, lockres->l_level, lockres->l_blocking, in ocfs2_generic_handle_bast()
1101 static void ocfs2_blocking_ast(struct ocfs2_dlm_lksb *lksb, int level) in ocfs2_blocking_ast() argument
1108 BUG_ON(level <= DLM_LOCK_NL); in ocfs2_blocking_ast()
1111 "type %s\n", lockres->l_name, level, lockres->l_level, in ocfs2_blocking_ast()
1122 needs_downconvert = ocfs2_generic_handle_bast(lockres, level); in ocfs2_blocking_ast()
1298 int level, in ocfs2_lock_create() argument
1305 mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level, in ocfs2_lock_create()
1316 lockres->l_requested = level; in ocfs2_lock_create()
1322 level, in ocfs2_lock_create()
1456 int level, in __ocfs2_cluster_lock() argument
1499 level > lockres->l_level) { in __ocfs2_cluster_lock()
1522 if (level <= lockres->l_level) in __ocfs2_cluster_lock()
1527 !ocfs2_may_continue_on_blocked_lock(lockres, level)) { in __ocfs2_cluster_lock()
1535 if (level > lockres->l_level) { in __ocfs2_cluster_lock()
1555 lockres->l_requested = level; in __ocfs2_cluster_lock()
1560 BUG_ON(level == DLM_LOCK_IV); in __ocfs2_cluster_lock()
1561 BUG_ON(level == DLM_LOCK_NL); in __ocfs2_cluster_lock()
1564 lockres->l_name, lockres->l_level, level); in __ocfs2_cluster_lock()
1568 level, in __ocfs2_cluster_lock()
1598 ocfs2_inc_holders(lockres, level); in __ocfs2_cluster_lock()
1640 ocfs2_update_lock_stats(lockres, level, &mw, ret); in __ocfs2_cluster_lock()
1644 if (level == DLM_LOCK_PR) in __ocfs2_cluster_lock()
1659 int level, in ocfs2_cluster_lock() argument
1663 return __ocfs2_cluster_lock(osb, lockres, level, lkm_flags, arg_flags, in ocfs2_cluster_lock()
1670 int level, in __ocfs2_cluster_unlock() argument
1676 ocfs2_dec_holders(lockres, level); in __ocfs2_cluster_unlock()
1690 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_create_new_lock() local
1699 return ocfs2_lock_create(osb, lockres, level, lkm_flags); in ocfs2_create_new_lock()
1751 int status, level; in ocfs2_rw_lock() local
1764 level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_rw_lock()
1766 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_rw_lock()
1775 int status, level; in ocfs2_try_rw_lock() local
1788 level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_try_rw_lock()
1790 status = ocfs2_cluster_lock(osb, lockres, level, DLM_LKF_NOQUEUE, 0); in ocfs2_try_rw_lock()
1796 int level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_rw_unlock() local
1805 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_rw_unlock()
1835 int status = 0, level; in ocfs2_try_open_lock() local
1854 level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_try_open_lock()
1862 status = ocfs2_cluster_lock(osb, lockres, level, DLM_LKF_NOQUEUE, 0); in ocfs2_try_open_lock()
1892 int level) in ocfs2_flock_handle_signal() argument
1926 if (lockres->l_level == level) in ocfs2_flock_handle_signal()
1961 int ret, level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_file_lock() local
2005 lockres->l_requested = level; in ocfs2_file_lock()
2011 ret = ocfs2_dlm_lock(osb->cconn, level, &lockres->l_lksb, lkm_flags, in ocfs2_file_lock()
2041 ret = ocfs2_flock_handle_signal(lockres, level); in ocfs2_file_lock()
2042 } else if (!ret && (level > lockres->l_level)) { in ocfs2_file_lock()
2415 int status, level, acquired; in ocfs2_inode_lock_full_nested() local
2443 level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_inode_lock_full_nested()
2448 status = __ocfs2_cluster_lock(osb, lockres, level, dlm_flags, in ocfs2_inode_lock_full_nested()
2559 int *level, int wait) in ocfs2_inode_lock_atime() argument
2592 *level = 1; in ocfs2_inode_lock_atime()
2598 *level = 0; in ocfs2_inode_lock_atime()
2606 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_inode_unlock() local
2616 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_inode_unlock()
2781 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_super_lock() local
2790 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_super_lock()
2807 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_super_lock()
2819 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_super_unlock() local
2823 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_super_unlock()
2962 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_dentry_lock() local
2977 ret = ocfs2_cluster_lock(osb, &dl->dl_lockres, level, 0, 0); in ocfs2_dentry_lock()
2986 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_dentry_unlock() local
2991 ocfs2_cluster_unlock(osb, &dl->dl_lockres, level); in ocfs2_dentry_unlock()
3706 int level; in ocfs2_unblock_lock() local
3841 level = lockres->l_level; in ocfs2_unblock_lock()
3853 if ((blocking != lockres->l_blocking) || (level != lockres->l_level)) { in ocfs2_unblock_lock()
3858 lockres->l_blocking, level, lockres->l_level); in ocfs2_unblock_lock()
4144 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_qinfo_unlock() local
4147 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_qinfo_unlock()
4199 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_qinfo_lock() local
4211 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_qinfo_lock()
4230 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_refcount_lock() local
4241 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_refcount_lock()
4250 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_refcount_unlock() local
4255 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_refcount_unlock()