Lines Matching refs:rf_list

1089 	el = &rb->rf_list;  in ocfs2_get_refcount_rec()
1346 memset(&root_rb->rf_list, 0, sb->s_blocksize - in ocfs2_expand_inline_ref_root()
1347 offsetof(struct ocfs2_refcount_block, rf_list)); in ocfs2_expand_inline_ref_root()
1348 root_rb->rf_list.l_count = cpu_to_le16(ocfs2_extent_recs_per_rb(sb)); in ocfs2_expand_inline_ref_root()
1350 root_rb->rf_list.l_next_free_rec = cpu_to_le16(1); in ocfs2_expand_inline_ref_root()
1351 root_rb->rf_list.l_recs[0].e_blkno = cpu_to_le64(blkno); in ocfs2_expand_inline_ref_root()
1352 root_rb->rf_list.l_recs[0].e_leaf_clusters = cpu_to_le16(1); in ocfs2_expand_inline_ref_root()
1753 struct ocfs2_refcount_list *rf_list = &rb->rf_records; in ocfs2_insert_refcount_rec() local
1758 if (rf_list->rl_used == rf_list->rl_count) { in ocfs2_insert_refcount_rec()
1779 rf_list = &rb->rf_records; in ocfs2_insert_refcount_rec()
1789 if (index < le16_to_cpu(rf_list->rl_used)) in ocfs2_insert_refcount_rec()
1790 memmove(&rf_list->rl_recs[index + 1], in ocfs2_insert_refcount_rec()
1791 &rf_list->rl_recs[index], in ocfs2_insert_refcount_rec()
1792 (le16_to_cpu(rf_list->rl_used) - index) * in ocfs2_insert_refcount_rec()
1800 rf_list->rl_recs[index] = *rec; in ocfs2_insert_refcount_rec()
1802 le16_add_cpu(&rf_list->rl_used, 1); in ocfs2_insert_refcount_rec()
1843 struct ocfs2_refcount_list *rf_list = &rb->rf_records; in ocfs2_split_refcount_rec() local
1844 struct ocfs2_refcount_rec *orig_rec = &rf_list->rl_recs[index]; in ocfs2_split_refcount_rec()
1883 if (le16_to_cpu(rf_list->rl_used) + recs_need > in ocfs2_split_refcount_rec()
1884 le16_to_cpu(rf_list->rl_count)) { in ocfs2_split_refcount_rec()
1909 rf_list = &rb->rf_records; in ocfs2_split_refcount_rec()
1910 orig_rec = &rf_list->rl_recs[index]; in ocfs2_split_refcount_rec()
1925 if (index != le16_to_cpu(rf_list->rl_used) - 1) in ocfs2_split_refcount_rec()
1926 memmove(&rf_list->rl_recs[index + 1 + recs_need], in ocfs2_split_refcount_rec()
1927 &rf_list->rl_recs[index + 1], in ocfs2_split_refcount_rec()
1928 (le16_to_cpu(rf_list->rl_used) - index - 1) * in ocfs2_split_refcount_rec()
1941 tail_rec = &rf_list->rl_recs[index + recs_need]; in ocfs2_split_refcount_rec()
1965 le16_add_cpu(&rf_list->rl_used, recs_need); in ocfs2_split_refcount_rec()
1968 rf_list->rl_recs[index] = *split_rec; in ocfs2_split_refcount_rec()
2139 if (!rb->rf_list.l_next_free_rec) { in ocfs2_remove_refcount_extent()