Lines Matching refs:split_rec
3350 struct ocfs2_extent_rec *split_rec, in ocfs2_merge_rec_right() argument
3354 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_right()
3516 struct ocfs2_extent_rec *split_rec, in ocfs2_merge_rec_left() argument
3521 unsigned int split_clusters = le16_to_cpu(split_rec->e_leaf_clusters); in ocfs2_merge_rec_left()
3549 le32_to_cpu(split_rec->e_cpos)); in ocfs2_merge_rec_left()
3605 *left_rec = *split_rec; in ocfs2_merge_rec_left()
3663 struct ocfs2_extent_rec *split_rec, in ocfs2_try_to_merge_extent() argument
3718 ret = ocfs2_merge_rec_right(path, handle, et, split_rec, in ocfs2_try_to_merge_extent()
3787 split_rec, dealloc, in ocfs2_try_to_merge_extent()
3795 et, split_rec, in ocfs2_try_to_merge_extent()
3833 struct ocfs2_extent_rec *split_rec) in ocfs2_subtract_from_rec() argument
3838 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3846 le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3849 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
3856 -le16_to_cpu(split_rec->e_leaf_clusters)); in ocfs2_subtract_from_rec()
4079 struct ocfs2_extent_rec *split_rec, in ocfs2_split_record() argument
4083 u32 cpos = le32_to_cpu(split_rec->e_cpos); in ocfs2_split_record()
4150 split, rec, split_rec); in ocfs2_split_record()
4151 ocfs2_rotate_leaf(insert_el, split_rec); in ocfs2_split_record()
4358 struct ocfs2_extent_rec *split_rec, in ocfs2_figure_merge_contig_type() argument
4415 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4418 ret = ocfs2_et_extent_contig(et, rec, split_rec); in ocfs2_figure_merge_contig_type()
4464 contig_type = ocfs2_et_extent_contig(et, rec, split_rec); in ocfs2_figure_merge_contig_type()
4889 struct ocfs2_extent_rec *split_rec, in ocfs2_make_right_split_rec() argument
4896 memset(split_rec, 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_make_right_split_rec()
4898 split_rec->e_cpos = cpu_to_le32(cpos); in ocfs2_make_right_split_rec()
4899 split_rec->e_leaf_clusters = cpu_to_le16(rec_range - cpos); in ocfs2_make_right_split_rec()
4901 split_rec->e_blkno = rec->e_blkno; in ocfs2_make_right_split_rec()
4902 le64_add_cpu(&split_rec->e_blkno, in ocfs2_make_right_split_rec()
4905 split_rec->e_flags = rec->e_flags; in ocfs2_make_right_split_rec()
4921 struct ocfs2_extent_rec split_rec = *orig_split_rec; in ocfs2_split_and_insert() local
4956 insert_range = le32_to_cpu(split_rec.e_cpos) + in ocfs2_split_and_insert()
4957 le16_to_cpu(split_rec.e_leaf_clusters); in ocfs2_split_and_insert()
4961 if (split_rec.e_cpos == rec.e_cpos) { in ocfs2_split_and_insert()
4975 split_rec = tmprec; in ocfs2_split_and_insert()
4981 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_and_insert()
4992 split_rec = *orig_split_rec; in ocfs2_split_and_insert()
4996 cpos = le32_to_cpu(split_rec.e_cpos); in ocfs2_split_and_insert()
5025 struct ocfs2_extent_rec *split_rec) in ocfs2_replace_extent_rec() argument
5036 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5066 struct ocfs2_extent_rec *split_rec, in ocfs2_split_extent() argument
5076 if (le32_to_cpu(rec->e_cpos) > le32_to_cpu(split_rec->e_cpos) || in ocfs2_split_extent()
5078 (le32_to_cpu(split_rec->e_cpos) + le16_to_cpu(split_rec->e_leaf_clusters)))) { in ocfs2_split_extent()
5086 split_rec, in ocfs2_split_extent()
5108 if (rec->e_cpos == split_rec->e_cpos && in ocfs2_split_extent()
5109 rec->e_leaf_clusters == split_rec->e_leaf_clusters) in ocfs2_split_extent()
5123 split_index, split_rec); in ocfs2_split_extent()
5127 split_rec, meta_ac); in ocfs2_split_extent()
5132 split_index, split_rec, in ocfs2_split_extent()
5165 struct ocfs2_extent_rec split_rec; in ocfs2_change_extent_flag() local
5212 memset(&split_rec, 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_change_extent_flag()
5213 split_rec.e_cpos = cpu_to_le32(cpos); in ocfs2_change_extent_flag()
5214 split_rec.e_leaf_clusters = cpu_to_le16(len); in ocfs2_change_extent_flag()
5215 split_rec.e_blkno = cpu_to_le64(start_blkno); in ocfs2_change_extent_flag()
5216 split_rec.e_flags = rec->e_flags; in ocfs2_change_extent_flag()
5218 split_rec.e_flags |= new_flags; in ocfs2_change_extent_flag()
5220 split_rec.e_flags &= ~clear_flags; in ocfs2_change_extent_flag()
5223 index, &split_rec, meta_ac, in ocfs2_change_extent_flag()
5287 struct ocfs2_extent_rec split_rec; in ocfs2_split_tree() local
5297 &split_rec, new_range, rec); in ocfs2_split_tree()
5338 ret = ocfs2_do_insert_extent(handle, et, &split_rec, &insert); in ocfs2_split_tree()