Lines Matching refs:bg_free_bits_count
197 if (le16_to_cpu(gd->bg_free_bits_count) > le16_to_cpu(gd->bg_bits)) { in ocfs2_validate_gd_self()
201 le16_to_cpu(gd->bg_free_bits_count)); in ocfs2_validate_gd_self()
351 le16_add_cpu(&bg->bg_free_bits_count, in ocfs2_bg_discontig_add_extent()
403 bg->bg_free_bits_count = cpu_to_le16(le16_to_cpu(bg->bg_bits) - 1); in ocfs2_block_group_fill()
735 le16_to_cpu(bg->bg_free_bits_count)); in ocfs2_block_group_alloc()
743 le16_to_cpu(bg->bg_free_bits_count)); in ocfs2_block_group_alloc()
1362 BUG_ON(le16_to_cpu(bg->bg_free_bits_count) < num_bits); in ocfs2_block_group_set_bits()
1378 le16_add_cpu(&bg->bg_free_bits_count, -num_bits); in ocfs2_block_group_set_bits()
1379 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { in ocfs2_block_group_set_bits()
1383 le16_to_cpu(bg->bg_free_bits_count), in ocfs2_block_group_set_bits()
1482 return le16_to_cpu(bg->bg_free_bits_count) > wanted; in ocfs2_block_group_reasonably_empty()
1502 if (gd->bg_free_bits_count) { in ocfs2_cluster_group_search()
1571 if (bg->bg_free_bits_count) { in ocfs2_block_group_search()
1740 *bits_left = le16_to_cpu(gd->bg_free_bits_count); in ocfs2_search_one_group()
1878 *bits_left = le16_to_cpu(bg->bg_free_bits_count); in ocfs2_search_chain()
2437 le16_add_cpu(&bg->bg_free_bits_count, num_bits); in ocfs2_block_group_clear_bits()
2438 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { in ocfs2_block_group_clear_bits()
2444 le16_to_cpu(bg->bg_free_bits_count), in ocfs2_block_group_clear_bits()