Lines Matching refs:el

602 		node->el = NULL;  in ocfs2_reinit_path()
645 dest->p_node[i].el = src->p_node[i].el; in ocfs2_cp_path()
667 dest->p_node[i].el = src->p_node[i].el; in ocfs2_mv_path()
670 src->p_node[i].el = NULL; in ocfs2_mv_path()
693 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
782 int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster) in ocfs2_search_extent_list() argument
789 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
790 rec = &el->l_recs[i]; in ocfs2_search_extent_list()
793 clusters = ocfs2_rec_clusters(el, rec); in ocfs2_search_extent_list()
967 struct ocfs2_extent_list *el = NULL; in ocfs2_num_free_extents() local
972 el = et->et_root_el; in ocfs2_num_free_extents()
983 el = &eb->h_list; in ocfs2_num_free_extents()
986 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
988 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1094 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1098 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1100 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1101 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1113 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1140 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1141 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1173 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1180 el = &eb->h_list; in ocfs2_add_branch()
1182 el = et->et_root_el; in ocfs2_add_branch()
1185 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1187 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1322 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1323 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1324 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1325 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1326 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1472 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1478 el = et->et_root_el; in ocfs2_find_branch_target()
1480 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1481 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1487 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1488 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1506 el = &eb->h_list; in ocfs2_find_branch_target()
1508 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1509 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1518 el = et->et_root_el; in ocfs2_find_branch_target()
1519 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1544 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1545 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1610 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1612 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1613 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1622 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1625 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1632 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1633 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1638 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1651 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1660 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1669 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1672 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1679 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1683 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1684 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1694 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1698 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1700 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1704 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1706 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1710 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1713 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1714 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1716 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1727 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1729 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1731 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1736 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1739 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1742 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1743 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1745 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1748 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1749 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1811 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1814 el = root_el; in __ocfs2_find_path()
1815 while (el->l_tree_depth) { in __ocfs2_find_path()
1816 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1820 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1826 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1827 rec = &el->l_recs[i]; in __ocfs2_find_path()
1835 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1840 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1845 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1859 el = &eb->h_list; in __ocfs2_find_path()
1861 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1862 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1867 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1868 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1923 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1927 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2058 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2085 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2087 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2089 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2090 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2101 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2102 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2110 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2111 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2112 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2114 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2230 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2241 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2247 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2248 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2267 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2268 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2269 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2338 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2340 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2347 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2352 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2355 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2544 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2558 el = &eb->h_list; in ocfs2_update_edge_lengths()
2559 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2560 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2561 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2562 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2565 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2566 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2567 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2585 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2596 el = &eb->h_list; in ocfs2_unlink_path()
2597 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2603 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2610 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2611 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2632 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2825 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_right_leaf() local
2839 el = path->p_node[i].el; in ocfs2_find_cpos_for_right_leaf()
2845 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2846 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
2847 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_right_leaf()
2866 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
2895 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2897 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2907 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3040 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3105 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3106 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3107 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3108 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3168 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3170 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3171 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3200 el = &eb->h_list; in ocfs2_rotate_tree_left()
3207 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3210 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3271 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3274 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3289 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3291 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3299 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3370 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3374 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3375 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3377 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3378 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3438 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3439 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3457 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3534 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3542 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3599 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3600 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3625 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3637 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3678 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3679 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3705 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3738 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3756 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3877 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3884 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3887 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3889 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3900 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3913 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3914 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3915 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3916 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3917 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3925 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3926 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3931 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3932 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3937 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3938 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3939 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3940 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3941 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3945 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3946 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3961 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3971 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3979 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3981 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3989 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
4008 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
4024 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4025 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4027 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4094 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4101 el = right_el; in ocfs2_split_record()
4103 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4106 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4138 el = left_el; in ocfs2_split_record()
4152 el = left_el; in ocfs2_split_record()
4154 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4158 rec = &el->l_recs[index]; in ocfs2_split_record()
4262 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4264 el = et->et_root_el; in ocfs2_do_insert_extent()
4273 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4274 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4367 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4382 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4425 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4433 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4434 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4435 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4495 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4501 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4503 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4504 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4515 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4540 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4549 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4551 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4554 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4556 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4560 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4561 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4594 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4600 el = et->et_root_el; in ocfs2_figure_insert_type()
4601 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4603 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4618 el = &eb->h_list; in ocfs2_figure_insert_type()
4629 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4630 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4633 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4634 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4657 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4667 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4698 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4999 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
5013 el = path_leaf_el(path); in ocfs2_split_and_insert()
5014 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
5033 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5046 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5081 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5083 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5094 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5128 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5136 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5181 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5196 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5198 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5209 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5300 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5308 el = path_leaf_el(path); in ocfs2_split_tree()
5309 rec = &el->l_recs[index]; in ocfs2_split_tree()
5372 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5376 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5395 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5408 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5430 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5467 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5474 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5476 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5482 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5534 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5556 el = path_leaf_el(path); in ocfs2_remove_extent()
5557 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5583 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5584 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5592 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5621 el = path_leaf_el(path); in ocfs2_remove_extent()
5622 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5636 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5638 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5644 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7207 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7268 el = path_leaf_el(path); in ocfs2_commit_truncate()
7269 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7278 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7279 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7281 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7311 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()