Lines Matching refs:BUG_ON

183 	BUG_ON(et->et_ops != &ocfs2_dinode_et_ops);  in ocfs2_dinode_set_last_eb_blk()
191 BUG_ON(et->et_ops != &ocfs2_dinode_et_ops); in ocfs2_dinode_get_last_eb_blk()
229 BUG_ON(oi->ip_dyn_features & OCFS2_INLINE_DATA_FL); in ocfs2_dinode_insert_check()
245 BUG_ON(et->et_ops != &ocfs2_dinode_et_ops); in ocfs2_dinode_sanity_check()
246 BUG_ON(!OCFS2_IS_VALID_DINODE(di)); in ocfs2_dinode_sanity_check()
370 BUG_ON(!OCFS2_IS_VALID_DX_ROOT(dx_root)); in ocfs2_dx_root_sanity_check()
628 BUG_ON(path_root_bh(dest) != path_root_bh(src)); in ocfs2_cp_path()
629 BUG_ON(path_root_el(dest) != path_root_el(src)); in ocfs2_cp_path()
630 BUG_ON(path_root_access(dest) != path_root_access(src)); in ocfs2_cp_path()
651 BUG_ON(path_root_bh(dest) != path_root_bh(src)); in ocfs2_mv_path()
652 BUG_ON(path_root_access(dest) != path_root_access(src)); in ocfs2_mv_path()
681 BUG_ON(index == 0); in ocfs2_path_insert_eb()
693 BUG_ON(le16_to_cpu(root_el->l_tree_depth) >= OCFS2_MAX_PATH_DEPTH); in ocfs2_new_path()
892 BUG_ON(!buffer_uptodate(bh)); in ocfs2_validate_extent_block()
982 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
1172 BUG_ON(!last_eb_bh || !*last_eb_bh); in ocfs2_add_branch()
1181 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1237 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_add_branch()
1361 BUG_ON(!OCFS2_IS_VALID_EXTENT_BLOCK(eb)); in ocfs2_shift_tree_depth()
1519 BUG_ON(meta_ac == NULL); in ocfs2_grow_tree()
1532 BUG_ON(bh); in ocfs2_grow_tree()
1557 BUG_ON(*last_eb_bh); in ocfs2_grow_tree()
1589 BUG_ON(!next_free); in ocfs2_shift_records_right()
1591 BUG_ON(next_free >= count); in ocfs2_shift_records_right()
1608 BUG_ON(!next_free); in ocfs2_rotate_leaf()
1611 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1644 BUG_ON(insert_index < 0); in ocfs2_rotate_leaf()
1645 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1646 BUG_ON(insert_index > next_free); in ocfs2_rotate_leaf()
1652 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1671 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1681 BUG_ON(num_recs == 0); in ocfs2_remove_empty_extent()
1704 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1746 BUG_ON(path_root_bh(left) != path_root_bh(right)); in ocfs2_find_subtree_root()
1965 BUG_ON(right_child_el->l_tree_depth); in ocfs2_adjust_adjacent_records()
1966 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1); in ocfs2_adjust_adjacent_records()
1999 BUG_ON(le16_to_cpu(root_el->l_tree_depth) <= in ocfs2_adjust_root_records()
2011 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1)); in ocfs2_adjust_root_records()
2135 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2212 BUG_ON(path->p_tree_depth == 0); in ocfs2_find_cpos_for_left_leaf()
2552 BUG_ON(eb->h_next_leaf_blk != 0ULL); in ocfs2_update_edge_lengths()
2555 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2640 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec)); in ocfs2_unlink_subtree()
2673 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2730 BUG_ON(right_has_empty && !del_right_subtree); in ocfs2_rotate_subtree_left()
2928 BUG_ON(!ocfs2_is_empty_extent(&(path_leaf_el(path)->l_recs[0]))); in __ocfs2_rotate_tree_left()
3279 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3305 BUG_ON(left_path->p_tree_depth == 0); in ocfs2_get_right_path()
3308 BUG_ON(left_el->l_next_free_rec != left_el->l_count); in ocfs2_get_right_path()
3318 BUG_ON(right_cpos == 0); in ocfs2_get_right_path()
3364 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3378 BUG_ON(next_free <= 0); in ocfs2_merge_rec_right()
3381 BUG_ON(next_free <= 1); in ocfs2_merge_rec_right()
3385 BUG_ON(le32_to_cpu(left_rec->e_cpos) + in ocfs2_merge_rec_right()
3401 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3428 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3471 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3481 BUG_ON(left_cpos == 0); in ocfs2_get_left_path()
3530 BUG_ON(index < 0); in ocfs2_merge_rec_left()
3542 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) != in ocfs2_merge_rec_left()
3547 BUG_ON(le32_to_cpu(left_rec->e_cpos) + in ocfs2_merge_rec_left()
3563 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3665 BUG_ON(ctxt->c_contig_type == CONTIG_NONE); in ocfs2_try_to_merge_extent()
3688 BUG_ON(!ctxt->c_split_covers_rec); in ocfs2_try_to_merge_extent()
3714 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3832 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3836 BUG_ON(i == -1); in ocfs2_insert_at_leaf()
3877 BUG_ON(le32_to_cpu(insert_rec->e_cpos) < range); in ocfs2_insert_at_leaf()
3966 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4055 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4091 BUG_ON(index == -1); in ocfs2_split_record()
4095 BUG_ON(!left_path); in ocfs2_split_record()
4096 BUG_ON(!ocfs2_is_empty_extent(&left_el->l_recs[0])); in ocfs2_split_record()
4104 BUG_ON(index == -1); in ocfs2_split_record()
4447 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4495 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4751 BUG_ON(!clusters_to_add); in ocfs2_add_clusters_in_btree()
4790 BUG_ON(num_bits > clusters_to_add); in ocfs2_add_clusters_in_btree()
4892 BUG_ON(!(*last_eb_bh)); in ocfs2_split_and_insert()
4933 BUG_ON(do_leftright); in ocfs2_split_and_insert()
5530 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range); in ocfs2_remove_extent()
5673 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & in ocfs2_remove_btree_range()
5817 BUG_ON(mutex_trylock(&tl_inode->i_mutex)); in ocfs2_truncate_log_append()
5826 BUG_ON(!OCFS2_IS_VALID_DINODE(di)); in ocfs2_truncate_log_append()
5965 BUG_ON(mutex_trylock(&tl_inode->i_mutex)); in __ocfs2_flush_truncate_log()
5972 BUG_ON(!OCFS2_IS_VALID_DINODE(di)); in __ocfs2_flush_truncate_log()
6129 BUG_ON(!OCFS2_IS_VALID_DINODE(di)); in ocfs2_begin_truncate_log_recovery()
6637 BUG_ON(!ocfs2_sparse_alloc(OCFS2_SB(sb))); in ocfs2_zero_cluster_pages()
6650 BUG_ON(from > PAGE_CACHE_SIZE); in ocfs2_zero_cluster_pages()
6651 BUG_ON(to > PAGE_CACHE_SIZE); in ocfs2_zero_cluster_pages()
6671 BUG_ON(start > end); in ocfs2_grab_pages()
6705 BUG_ON(start >> OCFS2_SB(sb)->s_clustersize_bits != in ocfs2_grab_eof_pages()
7186 BUG_ON(start > end); in ocfs2_truncate_inline()