• Home
  • Raw
  • Download

Lines Matching refs:level

122 static void ocfs2_dump_meta_lvb_info(u64 level,  in ocfs2_dump_meta_lvb_info()  argument
129 mlog(level, "LVB information for %s (called from %s:%u):\n", in ocfs2_dump_meta_lvb_info()
131 mlog(level, "version: %u, clusters: %u, generation: 0x%x\n", in ocfs2_dump_meta_lvb_info()
134 mlog(level, "size: %llu, uid %u, gid %u, mode 0x%x\n", in ocfs2_dump_meta_lvb_info()
138 mlog(level, "nlink %u, atime_packed 0x%llx, ctime_packed 0x%llx, " in ocfs2_dump_meta_lvb_info()
342 int level,
348 int level, unsigned long caller_ip);
351 int level) in ocfs2_cluster_unlock() argument
353 __ocfs2_cluster_unlock(osb, lockres, level, _RET_IP_); in ocfs2_cluster_unlock()
359 static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, int level);
379 static inline int ocfs2_highest_compat_lock_level(int level);
439 static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level, in ocfs2_update_lock_stats() argument
446 if (level == LKM_PRMODE) in ocfs2_update_lock_stats()
448 else if (level == LKM_EXMODE) in ocfs2_update_lock_stats()
485 int level, struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument
752 int level) in ocfs2_inc_holders() argument
756 switch(level) { in ocfs2_inc_holders()
769 int level) in ocfs2_dec_holders() argument
773 switch(level) { in ocfs2_dec_holders()
790 static inline int ocfs2_highest_compat_lock_level(int level) in ocfs2_highest_compat_lock_level() argument
794 if (level == DLM_LOCK_EX) in ocfs2_highest_compat_lock_level()
796 else if (level == DLM_LOCK_PR) in ocfs2_highest_compat_lock_level()
886 int level) in ocfs2_generic_handle_bast() argument
892 if (level > lockres->l_blocking) { in ocfs2_generic_handle_bast()
897 if (ocfs2_highest_compat_lock_level(level) < in ocfs2_generic_handle_bast()
901 lockres->l_blocking = level; in ocfs2_generic_handle_bast()
905 lockres->l_name, level, lockres->l_level, lockres->l_blocking, in ocfs2_generic_handle_bast()
1020 static void ocfs2_blocking_ast(struct ocfs2_dlm_lksb *lksb, int level) in ocfs2_blocking_ast() argument
1027 BUG_ON(level <= DLM_LOCK_NL); in ocfs2_blocking_ast()
1030 "type %s\n", lockres->l_name, level, lockres->l_level, in ocfs2_blocking_ast()
1041 needs_downconvert = ocfs2_generic_handle_bast(lockres, level); in ocfs2_blocking_ast()
1217 int level, in ocfs2_lock_create() argument
1224 mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level, in ocfs2_lock_create()
1235 lockres->l_requested = level; in ocfs2_lock_create()
1241 level, in ocfs2_lock_create()
1364 int level, in __ocfs2_cluster_lock() argument
1400 level > lockres->l_level) { in __ocfs2_cluster_lock()
1423 if (level <= lockres->l_level) in __ocfs2_cluster_lock()
1428 !ocfs2_may_continue_on_blocked_lock(lockres, level)) { in __ocfs2_cluster_lock()
1436 if (level > lockres->l_level) { in __ocfs2_cluster_lock()
1456 lockres->l_requested = level; in __ocfs2_cluster_lock()
1461 BUG_ON(level == DLM_LOCK_IV); in __ocfs2_cluster_lock()
1462 BUG_ON(level == DLM_LOCK_NL); in __ocfs2_cluster_lock()
1465 lockres->l_name, lockres->l_level, level); in __ocfs2_cluster_lock()
1469 level, in __ocfs2_cluster_lock()
1498 ocfs2_inc_holders(lockres, level); in __ocfs2_cluster_lock()
1528 ocfs2_update_lock_stats(lockres, level, &mw, ret); in __ocfs2_cluster_lock()
1532 if (level == DLM_LOCK_PR) in __ocfs2_cluster_lock()
1547 int level, in ocfs2_cluster_lock() argument
1551 return __ocfs2_cluster_lock(osb, lockres, level, lkm_flags, arg_flags, in ocfs2_cluster_lock()
1558 int level, in __ocfs2_cluster_unlock() argument
1564 ocfs2_dec_holders(lockres, level); in __ocfs2_cluster_unlock()
1578 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_create_new_lock() local
1587 return ocfs2_lock_create(osb, lockres, level, lkm_flags); in ocfs2_create_new_lock()
1642 int status, level; in ocfs2_rw_lock() local
1657 level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_rw_lock()
1659 status = ocfs2_cluster_lock(OCFS2_SB(inode->i_sb), lockres, level, 0, in ocfs2_rw_lock()
1669 int level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_rw_unlock() local
1678 ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level); in ocfs2_rw_unlock()
1711 int status = 0, level; in ocfs2_try_open_lock() local
1732 level = write ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_try_open_lock()
1741 level, DLM_LKF_NOQUEUE, 0); in ocfs2_try_open_lock()
1773 int level) in ocfs2_flock_handle_signal() argument
1807 if (lockres->l_level == level) in ocfs2_flock_handle_signal()
1842 int ret, level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_file_lock() local
1886 lockres->l_requested = level; in ocfs2_file_lock()
1892 ret = ocfs2_dlm_lock(osb->cconn, level, &lockres->l_lksb, lkm_flags, in ocfs2_file_lock()
1922 ret = ocfs2_flock_handle_signal(lockres, level); in ocfs2_file_lock()
1923 } else if (!ret && (level > lockres->l_level)) { in ocfs2_file_lock()
2288 int status, level, acquired; in ocfs2_inode_lock_full_nested() local
2317 level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_inode_lock_full_nested()
2322 status = __ocfs2_cluster_lock(osb, lockres, level, dlm_flags, in ocfs2_inode_lock_full_nested()
2432 int *level) in ocfs2_inode_lock_atime() argument
2455 *level = 1; in ocfs2_inode_lock_atime()
2461 *level = 0; in ocfs2_inode_lock_atime()
2469 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_inode_unlock() local
2479 ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level); in ocfs2_inode_unlock()
2527 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_super_lock() local
2536 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_super_lock()
2548 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_super_lock()
2558 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_super_lock()
2570 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_super_unlock() local
2574 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_super_unlock()
2634 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_dentry_lock() local
2649 ret = ocfs2_cluster_lock(osb, &dl->dl_lockres, level, 0, 0); in ocfs2_dentry_lock()
2658 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_dentry_unlock() local
2663 ocfs2_cluster_unlock(osb, &dl->dl_lockres, level); in ocfs2_dentry_unlock()
3342 int level; in ocfs2_unblock_lock() local
3477 level = lockres->l_level; in ocfs2_unblock_lock()
3489 if ((blocking != lockres->l_blocking) || (level != lockres->l_level)) { in ocfs2_unblock_lock()
3494 lockres->l_blocking, level, lockres->l_level); in ocfs2_unblock_lock()
3775 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_qinfo_unlock() local
3778 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_qinfo_unlock()
3830 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_qinfo_lock() local
3842 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_qinfo_lock()
3861 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_refcount_lock() local
3872 status = ocfs2_cluster_lock(osb, lockres, level, 0, 0); in ocfs2_refcount_lock()
3881 int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; in ocfs2_refcount_unlock() local
3886 ocfs2_cluster_unlock(osb, lockres, level); in ocfs2_refcount_unlock()