Lines Matching refs:level
115 static inline int user_highest_compat_lock_level(int level) in user_highest_compat_lock_level() argument
119 if (level == DLM_LOCK_EX) in user_highest_compat_lock_level()
121 else if (level == DLM_LOCK_PR) in user_highest_compat_lock_level()
214 static void user_bast(struct ocfs2_dlm_lksb *lksb, int level) in user_bast() argument
219 lockres->l_namelen, lockres->l_name, level, lockres->l_level); in user_bast()
223 if (level > lockres->l_blocking) in user_bast()
224 lockres->l_blocking = level; in user_bast()
399 int level) in user_dlm_inc_holders() argument
401 switch(level) { in user_dlm_inc_holders()
426 int level, in user_dlm_cluster_lock() argument
433 if (level != DLM_LOCK_EX && in user_dlm_cluster_lock()
434 level != DLM_LOCK_PR) { in user_dlm_cluster_lock()
442 lockres->l_namelen, lockres->l_name, level, lkm_flags); in user_dlm_cluster_lock()
456 (level > lockres->l_level)) { in user_dlm_cluster_lock()
466 (!user_may_continue_on_blocked_lock(lockres, level))) { in user_dlm_cluster_lock()
475 if (level > lockres->l_level) { in user_dlm_cluster_lock()
480 lockres->l_requested = level; in user_dlm_cluster_lock()
484 BUG_ON(level == DLM_LOCK_IV); in user_dlm_cluster_lock()
485 BUG_ON(level == DLM_LOCK_NL); in user_dlm_cluster_lock()
488 status = ocfs2_dlm_lock(conn, level, &lockres->l_lksb, in user_dlm_cluster_lock()
504 user_dlm_inc_holders(lockres, level); in user_dlm_cluster_lock()
513 int level) in user_dlm_dec_holders() argument
515 switch(level) { in user_dlm_dec_holders()
530 int level) in user_dlm_cluster_unlock() argument
532 if (level != DLM_LOCK_EX && in user_dlm_cluster_unlock()
533 level != DLM_LOCK_PR) { in user_dlm_cluster_unlock()
540 user_dlm_dec_holders(lockres, level); in user_dlm_cluster_unlock()