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()
1079 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1083 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1085 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1086 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1098 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1125 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1126 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1158 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1165 el = &eb->h_list; in ocfs2_add_branch()
1167 el = et->et_root_el; in ocfs2_add_branch()
1170 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1172 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1307 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1308 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1309 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1310 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1311 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1457 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1463 el = et->et_root_el; in ocfs2_find_branch_target()
1465 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1466 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1472 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1473 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1491 el = &eb->h_list; in ocfs2_find_branch_target()
1493 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1494 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1503 el = et->et_root_el; in ocfs2_find_branch_target()
1504 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1529 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1530 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1595 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1597 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1598 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1607 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1610 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1617 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1618 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1623 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1636 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1645 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1654 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1657 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1664 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1668 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1669 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1679 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1683 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1685 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1689 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1691 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1695 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1698 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1699 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1701 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1712 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1714 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1716 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1721 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1724 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1727 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1728 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1730 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1733 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1734 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1796 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1799 el = root_el; in __ocfs2_find_path()
1800 while (el->l_tree_depth) { in __ocfs2_find_path()
1801 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1805 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1811 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1812 rec = &el->l_recs[i]; in __ocfs2_find_path()
1820 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1825 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1830 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1844 el = &eb->h_list; in __ocfs2_find_path()
1846 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1847 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1852 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1853 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1908 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1912 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2043 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2070 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2072 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2074 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2075 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2086 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2087 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2095 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2096 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2097 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2099 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2215 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2226 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2232 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2233 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2252 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2253 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2254 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2323 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2325 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2332 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2337 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2340 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2529 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2543 el = &eb->h_list; in ocfs2_update_edge_lengths()
2544 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2545 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2546 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2547 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2550 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2551 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2552 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2570 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2581 el = &eb->h_list; in ocfs2_unlink_path()
2582 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2588 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2595 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2596 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2617 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2810 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_right_leaf() local
2824 el = path->p_node[i].el; in ocfs2_find_cpos_for_right_leaf()
2830 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2831 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
2832 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_right_leaf()
2851 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
2880 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2882 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2892 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3025 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3090 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3091 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3092 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3093 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3153 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3155 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3156 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3185 el = &eb->h_list; in ocfs2_rotate_tree_left()
3192 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3195 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3256 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3259 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3274 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3276 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3284 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3355 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3359 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3360 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3362 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3363 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3423 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3424 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3442 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3519 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3527 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3584 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3585 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3610 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3622 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3663 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3664 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3690 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3723 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3741 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3862 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3869 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3872 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3874 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3885 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3898 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3899 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3900 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3901 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3902 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3910 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3911 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3916 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3917 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3922 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3923 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3924 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3925 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3926 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3930 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3931 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3946 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3956 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3964 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3966 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3974 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3993 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
4009 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4010 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4012 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4079 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4086 el = right_el; in ocfs2_split_record()
4088 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4091 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4123 el = left_el; in ocfs2_split_record()
4137 el = left_el; in ocfs2_split_record()
4139 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4143 rec = &el->l_recs[index]; in ocfs2_split_record()
4247 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4249 el = et->et_root_el; in ocfs2_do_insert_extent()
4258 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4259 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4352 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4367 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4410 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4418 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4419 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4420 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4480 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4486 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4488 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4489 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4500 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4525 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4534 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4536 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4539 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4541 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4545 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4546 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4579 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4585 el = et->et_root_el; in ocfs2_figure_insert_type()
4586 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4588 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4603 el = &eb->h_list; in ocfs2_figure_insert_type()
4614 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4615 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4618 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4619 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4642 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4652 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4683 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4984 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
4998 el = path_leaf_el(path); in ocfs2_split_and_insert()
4999 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
5018 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5031 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5066 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5068 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5079 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5109 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5117 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5162 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5177 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5179 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5190 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5281 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5289 el = path_leaf_el(path); in ocfs2_split_tree()
5290 rec = &el->l_recs[index]; in ocfs2_split_tree()
5353 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5357 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5376 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5389 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5411 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5448 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5455 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5457 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5463 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5515 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5537 el = path_leaf_el(path); in ocfs2_remove_extent()
5538 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5564 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5565 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5573 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5602 el = path_leaf_el(path); in ocfs2_remove_extent()
5603 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5617 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5619 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5625 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7206 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7267 el = path_leaf_el(path); in ocfs2_commit_truncate()
7268 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7277 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7278 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7280 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7310 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()