Lines Matching refs:bg_bits
185 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self()
188 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self()
192 if (le16_to_cpu(gd->bg_bits) > (8 * le16_to_cpu(gd->bg_size))) { in ocfs2_validate_gd_self()
195 le16_to_cpu(gd->bg_bits), in ocfs2_validate_gd_self()
218 if (le16_to_cpu(gd->bg_bits) > max_bits) { in ocfs2_validate_gd_parent()
221 le16_to_cpu(gd->bg_bits)); in ocfs2_validate_gd_parent()
335 rec->e_cpos = cpu_to_le32(le16_to_cpu(bg->bg_bits) / in ocfs2_bg_discontig_add_extent()
338 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent()
384 bg->bg_bits = cpu_to_le16(ocfs2_bits_per_group(cl)); in ocfs2_block_group_fill()
391 bg->bg_free_bits_count = cpu_to_le16(le16_to_cpu(bg->bg_bits) - 1); in ocfs2_block_group_fill()
497 le16_to_cpu(bg->bg_bits) / le16_to_cpu(cl->cl_bpc); in ocfs2_block_group_grow_discontig()
529 le16_to_cpu(bg->bg_bits) / le16_to_cpu(cl->cl_bpc); in ocfs2_block_group_grow_discontig()
727 le16_to_cpu(bg->bg_bits)); in ocfs2_block_group_alloc()
732 le32_add_cpu(&fe->id1.bitmap1.i_used, le16_to_cpu(bg->bg_bits) - in ocfs2_block_group_alloc()
734 le32_add_cpu(&fe->id1.bitmap1.i_total, le16_to_cpu(bg->bg_bits)); in ocfs2_block_group_alloc()
1399 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { in ocfs2_block_group_set_bits()
1402 le16_to_cpu(bg->bg_bits), in ocfs2_block_group_set_bits()
1423 le16_to_cpu(bg->bg_bits), start); in ocfs2_block_group_set_bits()
1551 max_bits = le16_to_cpu(gd->bg_bits); in ocfs2_cluster_group_search()
1566 le16_to_cpu(gd->bg_bits), in ocfs2_cluster_group_search()
1615 le16_to_cpu(bg->bg_bits), in ocfs2_block_group_search()
1830 le16_to_cpu(bg->bg_bits), 0); in ocfs2_search_chain()
2511 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { in ocfs2_block_group_clear_bits()
2516 le16_to_cpu(bg->bg_bits), in ocfs2_block_group_clear_bits()
2527 le16_to_cpu(bg->bg_bits), 0); in ocfs2_block_group_clear_bits()
2584 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); in _ocfs2_free_suballoc_bits()