Lines Matching refs:el
588 node->el = NULL; in ocfs2_reinit_path()
631 dest->p_node[i].el = src->p_node[i].el; in ocfs2_cp_path()
653 dest->p_node[i].el = src->p_node[i].el; in ocfs2_mv_path()
656 src->p_node[i].el = NULL; in ocfs2_mv_path()
679 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
768 int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster) in ocfs2_search_extent_list() argument
775 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
776 rec = &el->l_recs[i]; in ocfs2_search_extent_list()
779 clusters = ocfs2_rec_clusters(el, rec); in ocfs2_search_extent_list()
953 struct ocfs2_extent_list *el = NULL; in ocfs2_num_free_extents() local
958 el = et->et_root_el; in ocfs2_num_free_extents()
969 el = &eb->h_list; in ocfs2_num_free_extents()
972 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
974 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1080 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1084 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1086 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1087 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1099 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1126 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1127 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1159 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1166 el = &eb->h_list; in ocfs2_add_branch()
1168 el = et->et_root_el; in ocfs2_add_branch()
1171 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1173 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1308 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1309 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1310 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1311 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1312 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1458 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1464 el = et->et_root_el; in ocfs2_find_branch_target()
1466 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1467 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1473 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1474 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1492 el = &eb->h_list; in ocfs2_find_branch_target()
1494 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1495 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1504 el = et->et_root_el; in ocfs2_find_branch_target()
1505 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1530 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1531 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1596 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1598 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1599 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1608 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1611 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1618 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1619 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1624 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1637 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1646 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1655 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1658 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1665 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1669 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1670 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1680 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1684 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1686 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1690 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1692 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1696 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1699 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1700 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1702 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1713 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1715 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1717 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1722 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1725 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1728 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1729 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1731 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1734 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1735 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1797 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1800 el = root_el; in __ocfs2_find_path()
1801 while (el->l_tree_depth) { in __ocfs2_find_path()
1802 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1806 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1812 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1813 rec = &el->l_recs[i]; in __ocfs2_find_path()
1821 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1826 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1831 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1845 el = &eb->h_list; in __ocfs2_find_path()
1847 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1848 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1853 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1854 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1909 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1913 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2044 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2071 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2073 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2075 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2076 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2087 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2088 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2096 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2097 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2098 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2100 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2216 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2227 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2233 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2234 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2253 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2254 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2255 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2324 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2326 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2333 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2338 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2341 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2530 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2544 el = &eb->h_list; in ocfs2_update_edge_lengths()
2545 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2546 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2547 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2548 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2551 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2552 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2553 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2571 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2582 el = &eb->h_list; in ocfs2_unlink_path()
2583 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2589 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2596 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2597 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2618 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2811 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_right_leaf() local
2825 el = path->p_node[i].el; in ocfs2_find_cpos_for_right_leaf()
2831 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2832 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
2833 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_right_leaf()
2852 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
2881 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2883 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2893 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3026 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3091 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3092 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3093 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3094 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3154 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3156 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3157 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3186 el = &eb->h_list; in ocfs2_rotate_tree_left()
3193 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3196 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3257 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3260 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3275 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3277 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3285 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3356 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3360 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3361 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3363 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3364 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3424 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3425 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3443 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3520 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3528 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3585 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3586 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3611 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3623 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3664 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3665 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3691 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3724 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3742 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3863 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3870 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3873 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3875 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3886 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3899 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3900 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3901 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3902 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3903 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3911 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3912 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3917 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3918 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3923 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3924 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3925 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3926 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3927 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3931 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3932 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3947 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3957 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3965 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3967 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3975 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3994 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
4010 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4011 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4013 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4080 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4087 el = right_el; in ocfs2_split_record()
4089 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4092 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4124 el = left_el; in ocfs2_split_record()
4138 el = left_el; in ocfs2_split_record()
4140 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4144 rec = &el->l_recs[index]; in ocfs2_split_record()
4248 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4250 el = et->et_root_el; in ocfs2_do_insert_extent()
4259 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4260 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4353 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4368 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4411 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4419 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4420 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4421 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4481 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4487 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4489 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4490 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4501 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4526 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4535 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4537 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4540 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4542 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4546 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4547 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4580 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4586 el = et->et_root_el; in ocfs2_figure_insert_type()
4587 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4589 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4604 el = &eb->h_list; in ocfs2_figure_insert_type()
4615 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4616 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4619 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4620 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4643 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4653 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4684 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4985 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
4999 el = path_leaf_el(path); in ocfs2_split_and_insert()
5000 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
5019 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5032 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5067 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5069 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5080 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5110 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5118 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5163 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5178 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5180 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5191 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5282 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5290 el = path_leaf_el(path); in ocfs2_split_tree()
5291 rec = &el->l_recs[index]; in ocfs2_split_tree()
5354 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5358 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5377 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5390 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5412 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5449 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5456 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5458 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5464 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5516 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5538 el = path_leaf_el(path); in ocfs2_remove_extent()
5539 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5565 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5566 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5574 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5603 el = path_leaf_el(path); in ocfs2_remove_extent()
5604 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5618 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5620 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5626 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7229 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7290 el = path_leaf_el(path); in ocfs2_commit_truncate()
7291 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7300 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7301 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7303 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7333 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()