Lines Matching refs:BUG_ON
307 BUG_ON(!ocfs2_is_inode_lock(lockres)); in ocfs2_lock_res_inode()
314 BUG_ON(lockres->l_type != OCFS2_LOCK_TYPE_DENTRY); in ocfs2_lock_res_dl()
321 BUG_ON(lockres->l_type != OCFS2_LOCK_TYPE_QINFO); in ocfs2_lock_res_qinfo()
400 BUG_ON(type >= OCFS2_NUM_LOCK_TYPES); in ocfs2_build_lock_name()
406 BUG_ON(len != (OCFS2_LOCK_ID_MAX_LEN - 1)); in ocfs2_build_lock_name()
632 BUG_ON(len != (OCFS2_DENTRY_LOCK_INO_START - 1)); in ocfs2_dentry_lock_res_init()
754 BUG_ON(!lockres); in ocfs2_inc_holders()
771 BUG_ON(!lockres); in ocfs2_dec_holders()
775 BUG_ON(!lockres->l_ex_holders); in ocfs2_dec_holders()
779 BUG_ON(!lockres->l_ro_holders); in ocfs2_dec_holders()
831 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); in ocfs2_generic_handle_downconvert_action()
832 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); in ocfs2_generic_handle_downconvert_action()
833 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED)); in ocfs2_generic_handle_downconvert_action()
834 BUG_ON(lockres->l_blocking <= DLM_LOCK_NL); in ocfs2_generic_handle_downconvert_action()
847 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); in ocfs2_generic_handle_convert_action()
848 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); in ocfs2_generic_handle_convert_action()
877 BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY))); in ocfs2_generic_handle_attach_action()
878 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); in ocfs2_generic_handle_attach_action()
1018 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); in lockres_set_pending()
1032 BUG_ON(level <= DLM_LOCK_NL); in ocfs2_blocking_ast()
1296 BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED)); in ocfs2_may_continue_on_blocked_lock()
1321 BUG_ON(!list_empty(&mw->mw_item)); in lockres_add_mask_waiter()
1484 BUG_ON(level == DLM_LOCK_IV); in __ocfs2_cluster_lock()
1485 BUG_ON(level == DLM_LOCK_NL); in __ocfs2_cluster_lock()
1619 BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); in ocfs2_create_new_lock()
1637 BUG_ON(!inode); in ocfs2_create_new_inode_locks()
1638 BUG_ON(!ocfs2_inode_is_new(inode)); in ocfs2_create_new_inode_locks()
1682 BUG_ON(!inode); in ocfs2_rw_lock()
1726 BUG_ON(!inode); in ocfs2_open_lock()
1751 BUG_ON(!inode); in ocfs2_try_open_lock()
1961 BUG_ON(!trylock); in ocfs2_file_lock()
2330 BUG_ON(!inode); in ocfs2_inode_lock_full_nested()
2669 BUG_ON(!dl); in ocfs2_dentry_lock()
3141 BUG_ON(lockres->l_action != OCFS2_AST_INVALID); in ocfs2_drop_lock()
3289 BUG_ON(lockres->l_blocking <= DLM_LOCK_NL); in ocfs2_prepare_downconvert()
3361 BUG_ON(lockres->l_action != OCFS2_AST_CONVERT && in ocfs2_prepare_cancel_convert()
3412 BUG_ON(lockres->l_blocking != DLM_LOCK_NL); in ocfs2_unblock_lock()
3477 BUG_ON(lockres->l_ex_holders || lockres->l_ro_holders); in ocfs2_unblock_lock()
3645 BUG_ON(new_level != DLM_LOCK_NL && new_level != DLM_LOCK_PR); in ocfs2_ci_checkpointed()
3646 BUG_ON(lockres->l_level != DLM_LOCK_EX && !checkpointed); in ocfs2_ci_checkpointed()
3960 BUG_ON(!lockres); in ocfs2_process_blocked_lock()
3961 BUG_ON(!lockres->l_ops); in ocfs2_process_blocked_lock()
4047 BUG_ON(!processed); in ocfs2_downconvert_thread_do_work()