Lines Matching refs:e_cpos
231 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check()
236 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check()
783 rec_start = le32_to_cpu(rec->e_cpos); in ocfs2_search_extent_list()
818 left_range = le32_to_cpu(left->e_cpos) + in ocfs2_extents_adjacent()
821 return (left_range == le32_to_cpu(right->e_cpos)); in ocfs2_extents_adjacent()
1096 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1254 eb_el->l_recs[0].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1300 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1392 root_el->l_recs[0].e_cpos = 0; in ocfs2_shift_tree_depth()
1602 u32 insert_cpos = le32_to_cpu(insert_rec->e_cpos); in ocfs2_rotate_leaf()
1635 if (insert_cpos < le32_to_cpu(rec->e_cpos)) in ocfs2_rotate_leaf()
1808 range = le32_to_cpu(rec->e_cpos) + in __ocfs2_find_path()
1810 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in __ocfs2_find_path()
1963 left_clusters = le32_to_cpu(right_child_el->l_recs[0].e_cpos); in ocfs2_adjust_adjacent_records()
1967 left_clusters = le32_to_cpu(right_child_el->l_recs[1].e_cpos); in ocfs2_adjust_adjacent_records()
1969 left_clusters -= le32_to_cpu(left_rec->e_cpos); in ocfs2_adjust_adjacent_records()
1977 right_end = le32_to_cpu(right_rec->e_cpos); in ocfs2_adjust_adjacent_records()
1980 right_rec->e_cpos = left_rec->e_cpos; in ocfs2_adjust_adjacent_records()
1981 le32_add_cpu(&right_rec->e_cpos, left_clusters); in ocfs2_adjust_adjacent_records()
1983 right_end -= le32_to_cpu(right_rec->e_cpos); in ocfs2_adjust_adjacent_records()
2247 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2314 if (insert_cpos > le32_to_cpu(rec->e_cpos)) in ocfs2_rotate_requires_path_adjustment()
2336 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2337 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range) in ocfs2_leftmost_rec_contains()
2558 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2566 le32_add_cpu(&rec->e_int_clusters, -le32_to_cpu(rec->e_cpos)); in ocfs2_update_edge_lengths()
2866 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
3385 BUG_ON(le32_to_cpu(left_rec->e_cpos) + in ocfs2_merge_rec_right()
3387 le32_to_cpu(right_rec->e_cpos)); in ocfs2_merge_rec_right()
3441 le32_add_cpu(&right_rec->e_cpos, -split_clusters); in ocfs2_merge_rec_right()
3547 BUG_ON(le32_to_cpu(left_rec->e_cpos) + in ocfs2_merge_rec_left()
3549 le32_to_cpu(split_rec->e_cpos)); in ocfs2_merge_rec_left()
3611 le32_add_cpu(&right_rec->e_cpos, split_clusters); in ocfs2_merge_rec_left()
3803 le32_add_cpu(&rec->e_cpos, in ocfs2_subtract_from_rec()
3835 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3851 rec->e_cpos = insert_rec->e_cpos; in ocfs2_insert_at_leaf()
3875 range = le32_to_cpu(rec->e_cpos) in ocfs2_insert_at_leaf()
3877 BUG_ON(le32_to_cpu(insert_rec->e_cpos) < range); in ocfs2_insert_at_leaf()
3888 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3890 le32_to_cpu(insert_rec->e_cpos), in ocfs2_insert_at_leaf()
3940 rec->e_int_clusters = insert_rec->e_cpos; in ocfs2_adjust_rightmost_records()
3944 -le32_to_cpu(rec->e_cpos)); in ocfs2_adjust_rightmost_records()
3989 le32_to_cpu(insert_rec->e_cpos), in ocfs2_append_rec_to_path()
4042 u32 cpos = le32_to_cpu(split_rec->e_cpos); in ocfs2_split_record()
4239 cpos = le32_to_cpu(insert_rec->e_cpos); in ocfs2_do_insert_extent()
4266 le32_to_cpu(insert_rec->e_cpos), in ocfs2_do_insert_extent()
4375 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4490 u32 cpos = le32_to_cpu(insert_rec->e_cpos); in ocfs2_figure_appending_type()
4510 (le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters))) in ocfs2_figure_appending_type()
4597 ret = ocfs2_find_path(et->et_ci, path, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_figure_insert_type()
4681 rec.e_cpos = cpu_to_le32(cpos); in ocfs2_insert_extent()
4849 u32 rec_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_make_right_split_rec()
4854 split_rec->e_cpos = cpu_to_le32(cpos); in ocfs2_make_right_split_rec()
4912 insert_range = le32_to_cpu(split_rec.e_cpos) + in ocfs2_split_and_insert()
4914 rec_range = le32_to_cpu(rec.e_cpos) + in ocfs2_split_and_insert()
4917 if (split_rec.e_cpos == rec.e_cpos) { in ocfs2_split_and_insert()
4952 cpos = le32_to_cpu(split_rec.e_cpos); in ocfs2_split_and_insert()
5034 if (le32_to_cpu(rec->e_cpos) > le32_to_cpu(split_rec->e_cpos) || in ocfs2_split_extent()
5035 ((le32_to_cpu(rec->e_cpos) + le16_to_cpu(rec->e_leaf_clusters)) < in ocfs2_split_extent()
5036 (le32_to_cpu(split_rec->e_cpos) + le16_to_cpu(split_rec->e_leaf_clusters)))) { in ocfs2_split_extent()
5067 if (rec->e_cpos == split_rec->e_cpos && in ocfs2_split_extent()
5173 split_rec.e_cpos = cpu_to_le32(cpos); in ocfs2_change_extent_flag()
5349 le32_to_cpu(rec->e_cpos) == cpos) { in ocfs2_truncate_rec()
5406 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5409 if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) { in ocfs2_truncate_rec()
5426 } else if (le32_to_cpu(rec->e_cpos) == cpos) { in ocfs2_truncate_rec()
5428 le32_add_cpu(&rec->e_cpos, len); in ocfs2_truncate_rec()
5441 le32_to_cpu(rec->e_cpos), in ocfs2_truncate_rec()
5527 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5530 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range); in ocfs2_remove_extent()
5534 cpos, len, index, le32_to_cpu(rec->e_cpos), in ocfs2_remove_extent()
5537 if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) { in ocfs2_remove_extent()
5580 rec_range = le32_to_cpu(rec->e_cpos) + in ocfs2_remove_extent()
5587 cpos, len, le32_to_cpu(rec->e_cpos), in ocfs2_remove_extent()
7088 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7102 trunc_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()
7105 } else if (le32_to_cpu(rec->e_cpos) >= new_highest_cpos) { in ocfs2_commit_truncate()
7109 trunc_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()
7119 coff = new_highest_cpos - le32_to_cpu(rec->e_cpos); in ocfs2_commit_truncate()