Lines Matching refs:BUG_ON

264 	BUG_ON(!buffer_uptodate(bh));  in ocfs2_check_group_descriptor()
293 BUG_ON(!buffer_uptodate(bh)); in ocfs2_validate_group_descriptor()
344 BUG_ON(!ocfs2_supports_discontig_bg(osb)); in ocfs2_bg_discontig_add_extent()
685 BUG_ON(ocfs2_is_cluster_bitmap(alloc_inode)); in ocfs2_block_group_alloc()
818 BUG_ON(!OCFS2_IS_VALID_DINODE(fe)); in ocfs2_reserve_suballoc_bits()
857 BUG_ON(bits_wanted > in ocfs2_reserve_suballoc_bits()
1278 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_block_group_find_clear_bits()
1338 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_block_group_set_bits()
1339 BUG_ON(le16_to_cpu(bg->bg_free_bits_count) < num_bits); in ocfs2_block_group_set_bits()
1377 BUG_ON(!cl->cl_next_free_rec); in ocfs2_find_victim_chain()
1387 BUG_ON(best >= le16_to_cpu(cl->cl_next_free_rec)); in ocfs2_find_victim_chain()
1408 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_relink_block_group()
1409 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(prev_bg)); in ocfs2_relink_block_group()
1477 BUG_ON(!ocfs2_is_cluster_bitmap(inode)); in ocfs2_cluster_group_search()
1545 BUG_ON(min_bits != 1); in ocfs2_block_group_search()
1546 BUG_ON(ocfs2_is_cluster_bitmap(inode)); in ocfs2_block_group_search()
1791 BUG_ON(res->sr_bits == 0); in ocfs2_search_chain()
1879 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted); in ocfs2_claim_suballoc_bits()
1880 BUG_ON(bits_wanted > (ac->ac_bits_wanted - ac->ac_bits_given)); in ocfs2_claim_suballoc_bits()
1881 BUG_ON(!ac->ac_bh); in ocfs2_claim_suballoc_bits()
1887 BUG_ON(!OCFS2_IS_VALID_DINODE(fe)); in ocfs2_claim_suballoc_bits()
1988 BUG_ON(!ac); in ocfs2_claim_metadata()
1989 BUG_ON(ac->ac_bits_wanted < (ac->ac_bits_given + bits_wanted)); in ocfs2_claim_metadata()
1990 BUG_ON(ac->ac_which != OCFS2_AC_USE_META); in ocfs2_claim_metadata()
2059 BUG_ON(!ac); in ocfs2_find_new_inode_loc()
2060 BUG_ON(ac->ac_bits_given != 0); in ocfs2_find_new_inode_loc()
2061 BUG_ON(ac->ac_bits_wanted != 1); in ocfs2_find_new_inode_loc()
2062 BUG_ON(ac->ac_which != OCFS2_AC_USE_INODE); in ocfs2_find_new_inode_loc()
2131 BUG_ON(res->sr_blkno != di_blkno); in ocfs2_claim_new_inode_at_loc()
2169 BUG_ON(res->sr_bits != 1); in ocfs2_claim_new_inode_at_loc()
2193 BUG_ON(!ac); in ocfs2_claim_new_inode()
2194 BUG_ON(ac->ac_bits_given != 0); in ocfs2_claim_new_inode()
2195 BUG_ON(ac->ac_bits_wanted != 1); in ocfs2_claim_new_inode()
2196 BUG_ON(ac->ac_which != OCFS2_AC_USE_INODE); in ocfs2_claim_new_inode()
2211 BUG_ON(res.sr_bits != 1); in ocfs2_claim_new_inode()
2234 BUG_ON(!ocfs2_is_cluster_bitmap(inode)); in ocfs2_desc_bitmap_to_cluster_off()
2249 BUG_ON(!ocfs2_is_cluster_bitmap(inode)); in ocfs2_which_cluster_group()
2268 BUG_ON(!ocfs2_is_cluster_bitmap(inode)); in ocfs2_block_to_cluster_group()
2298 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted); in __ocfs2_claim_clusters()
2300 BUG_ON(ac->ac_which != OCFS2_AC_USE_LOCAL in __ocfs2_claim_clusters()
2334 BUG_ON(res.sr_blkno); /* cluster alloc can't set */ in __ocfs2_claim_clusters()
2384 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); in ocfs2_block_group_clear_bits()
2388 BUG_ON(undo_fn && !ocfs2_is_cluster_bitmap(alloc_inode)); in ocfs2_block_group_clear_bits()
2403 BUG_ON(!undo_bg); in ocfs2_block_group_clear_bits()
2455 BUG_ON(!OCFS2_IS_VALID_DINODE(fe)); in _ocfs2_free_suballoc_bits()
2456 BUG_ON((count + start_bit) > ocfs2_bits_per_group(cl)); in _ocfs2_free_suballoc_bits()
2471 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); in _ocfs2_free_suballoc_bits()
2548BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, ocfs2_blocks_to_clusters(bitmap_i… in _ocfs2_free_clusters()
2673 BUG_ON(clusters_to_add != 0 && data_ac == NULL); in ocfs2_lock_allocators()