Lines Matching refs:el

593 		node->el = NULL;  in ocfs2_reinit_path()
636 dest->p_node[i].el = src->p_node[i].el; in ocfs2_cp_path()
658 dest->p_node[i].el = src->p_node[i].el; in ocfs2_mv_path()
661 src->p_node[i].el = NULL; in ocfs2_mv_path()
684 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
773 int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster) in ocfs2_search_extent_list() argument
780 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
781 rec = &el->l_recs[i]; in ocfs2_search_extent_list()
784 clusters = ocfs2_rec_clusters(el, rec); in ocfs2_search_extent_list()
963 struct ocfs2_extent_list *el = NULL; in ocfs2_num_free_extents() local
968 el = et->et_root_el; in ocfs2_num_free_extents()
979 el = &eb->h_list; in ocfs2_num_free_extents()
982 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
984 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1090 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1094 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1096 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1097 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1109 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1136 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1137 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1169 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1176 el = &eb->h_list; in ocfs2_add_branch()
1178 el = et->et_root_el; in ocfs2_add_branch()
1181 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1183 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1298 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1299 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1300 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1301 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1302 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1438 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1444 el = et->et_root_el; in ocfs2_find_branch_target()
1446 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1447 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1455 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1456 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1477 el = &eb->h_list; in ocfs2_find_branch_target()
1479 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1480 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1489 el = et->et_root_el; in ocfs2_find_branch_target()
1490 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1515 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1516 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1583 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1585 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1586 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1595 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1598 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1605 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1606 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1611 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1624 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1633 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1642 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1645 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1652 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1656 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1657 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1667 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1671 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1673 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1677 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1679 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1683 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1686 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1687 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1689 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1700 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1702 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1704 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1709 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1712 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1715 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1716 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1718 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1721 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1722 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1784 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1787 el = root_el; in __ocfs2_find_path()
1788 while (el->l_tree_depth) { in __ocfs2_find_path()
1789 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1794 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1800 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1801 rec = &el->l_recs[i]; in __ocfs2_find_path()
1809 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1814 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1820 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1834 el = &eb->h_list; in __ocfs2_find_path()
1836 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1837 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1843 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1844 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1899 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1903 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2036 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2063 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2065 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2067 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2068 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2080 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2081 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2089 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2090 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2091 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2093 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2210 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2221 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2227 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2228 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2247 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2248 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2249 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2319 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2321 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2328 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2333 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2336 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2525 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2554 el = &eb->h_list; in ocfs2_update_edge_lengths()
2555 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2556 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2557 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2558 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2561 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2562 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2563 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2581 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2592 el = &eb->h_list; in ocfs2_unlink_path()
2593 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2599 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2606 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2607 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2628 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2629 struct ocfs2_extent_list *el; in ocfs2_unlink_subtree() local
2632 el = path_leaf_el(left_path); 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()
2896 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2898 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2908 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3040 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3118 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3119 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3120 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3121 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3157 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3159 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3160 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3189 el = &eb->h_list; in ocfs2_rotate_tree_left()
3196 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3199 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3261 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3264 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3279 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3281 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3289 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3360 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3364 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3365 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3367 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3368 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3428 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3429 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3447 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3524 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3532 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3589 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3590 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3617 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3629 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3662 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3663 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3681 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3714 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3723 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3825 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3832 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3835 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3837 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3848 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3861 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3862 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3863 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3864 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3865 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3873 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3874 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3879 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3880 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3885 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3886 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3887 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3888 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3889 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3893 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3894 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3909 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3919 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3927 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3929 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3938 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3957 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
3973 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
3974 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
3976 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4043 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4050 el = right_el; in ocfs2_split_record()
4052 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4055 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4087 el = left_el; in ocfs2_split_record()
4101 el = left_el; in ocfs2_split_record()
4103 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4107 rec = &el->l_recs[index]; in ocfs2_split_record()
4211 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4213 el = et->et_root_el; in ocfs2_do_insert_extent()
4222 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4223 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4317 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4331 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4375 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4383 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4384 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4385 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4441 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4447 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4449 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4450 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4461 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4486 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4495 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4497 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4500 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4502 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4506 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4507 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4540 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4546 el = et->et_root_el; in ocfs2_figure_insert_type()
4547 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4549 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4564 el = &eb->h_list; in ocfs2_figure_insert_type()
4575 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4576 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4579 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4580 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4603 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4613 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4644 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4945 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
4959 el = path_leaf_el(path); in ocfs2_split_and_insert()
4960 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
4980 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
4993 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5028 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5030 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5042 ctxt.c_contig_type = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5073 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5081 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5126 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5141 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5143 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5155 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5248 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5256 el = path_leaf_el(path); in ocfs2_split_tree()
5257 rec = &el->l_recs[index]; in ocfs2_split_tree()
5320 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5324 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5334 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5347 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5369 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5406 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5413 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5416 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5422 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5476 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5498 el = path_leaf_el(path); in ocfs2_remove_extent()
5499 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5526 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5527 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5535 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5564 el = path_leaf_el(path); in ocfs2_remove_extent()
5565 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5579 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5581 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5588 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7014 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7075 el = path_leaf_el(path); in ocfs2_commit_truncate()
7076 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7085 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7086 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7088 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7110 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()