Lines Matching refs:rf_records
640 rb->rf_records.rl_count = in ocfs2_create_refcount_tree()
895 for (; i < le16_to_cpu(rb->rf_records.rl_used); i++) { in ocfs2_find_refcount_rec_in_rl()
896 rec = &rb->rf_records.rl_recs[i]; in ocfs2_find_refcount_rec_in_rl()
914 if (i < le16_to_cpu(rb->rf_records.rl_used) && in ocfs2_find_refcount_rec_in_rl()
1163 if ((rb->rf_records.rl_recs[index].r_refcount == in ocfs2_refcount_rec_adjacent()
1164 rb->rf_records.rl_recs[index + 1].r_refcount) && in ocfs2_refcount_rec_adjacent()
1165 (le64_to_cpu(rb->rf_records.rl_recs[index].r_cpos) + in ocfs2_refcount_rec_adjacent()
1166 le32_to_cpu(rb->rf_records.rl_recs[index].r_clusters) == in ocfs2_refcount_rec_adjacent()
1167 le64_to_cpu(rb->rf_records.rl_recs[index + 1].r_cpos))) in ocfs2_refcount_rec_adjacent()
1179 if (index < le16_to_cpu(rb->rf_records.rl_used) - 1) in ocfs2_refcount_rec_contig()
1201 BUG_ON(rb->rf_records.rl_recs[index].r_refcount != in ocfs2_rotate_refcount_rec_left()
1202 rb->rf_records.rl_recs[index+1].r_refcount); in ocfs2_rotate_refcount_rec_left()
1204 le32_add_cpu(&rb->rf_records.rl_recs[index].r_clusters, in ocfs2_rotate_refcount_rec_left()
1205 le32_to_cpu(rb->rf_records.rl_recs[index+1].r_clusters)); in ocfs2_rotate_refcount_rec_left()
1207 if (index < le16_to_cpu(rb->rf_records.rl_used) - 2) in ocfs2_rotate_refcount_rec_left()
1208 memmove(&rb->rf_records.rl_recs[index + 1], in ocfs2_rotate_refcount_rec_left()
1209 &rb->rf_records.rl_recs[index + 2], in ocfs2_rotate_refcount_rec_left()
1211 (le16_to_cpu(rb->rf_records.rl_used) - index - 2)); in ocfs2_rotate_refcount_rec_left()
1213 memset(&rb->rf_records.rl_recs[le16_to_cpu(rb->rf_records.rl_used) - 1], in ocfs2_rotate_refcount_rec_left()
1215 le16_add_cpu(&rb->rf_records.rl_used, -1); in ocfs2_rotate_refcount_rec_left()
1253 struct ocfs2_refcount_list *rl = &rb->rf_records; in ocfs2_change_refcount_rec()
1362 le16_to_cpu(new_rb->rf_records.rl_used)); in ocfs2_expand_inline_ref_root()
1468 struct ocfs2_refcount_list *rl = &rb->rf_records; in ocfs2_divide_leaf_refcount_block()
1471 struct ocfs2_refcount_list *new_rl = &new_rb->rf_records; in ocfs2_divide_leaf_refcount_block()
1593 new_rb->rf_records.rl_count = in ocfs2_new_leaf_refcount_block()
1759 struct ocfs2_refcount_list *rf_list = &rb->rf_records; in ocfs2_insert_refcount_rec()
1785 rf_list = &rb->rf_records; in ocfs2_insert_refcount_rec()
1849 struct ocfs2_refcount_list *rf_list = &rb->rf_records; in ocfs2_split_refcount_rec()
1915 rf_list = &rb->rf_records; in ocfs2_split_refcount_rec()
2099 BUG_ON(rb->rf_records.rl_used); in ocfs2_remove_refcount_extent()
2154 memset(&rb->rf_records, 0, sb->s_blocksize - in ocfs2_remove_refcount_extent()
2155 offsetof(struct ocfs2_refcount_block, rf_records)); in ocfs2_remove_refcount_extent()
2156 rb->rf_records.rl_count = in ocfs2_remove_refcount_extent()
2189 struct ocfs2_refcount_rec *rec = &rb->rf_records.rl_recs[index]; in ocfs2_decrease_refcount_rec()
2222 if (!rb->rf_records.rl_used && ref_leaf_bh != ref_root_bh) { in ocfs2_decrease_refcount_rec()
2418 if (le16_to_cpu(rb->rf_records.rl_used) + in ocfs2_calc_refcount_meta_credits()
2420 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
2481 if (le16_to_cpu(rb->rf_records.rl_used) + recs_add > in ocfs2_calc_refcount_meta_credits()
2482 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
3601 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > in ocfs2_refcounted_xattr_delete_need()
3602 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_refcounted_xattr_delete_need()