Lines Matching full:el

586 		node->el = NULL;  in ocfs2_reinit_path()
629 dest->p_node[i].el = src->p_node[i].el; in ocfs2_cp_path()
651 dest->p_node[i].el = src->p_node[i].el; in ocfs2_mv_path()
654 src->p_node[i].el = NULL; in ocfs2_mv_path()
677 path->p_node[index].el = &eb->h_list; in ocfs2_path_insert_eb()
766 int ocfs2_search_extent_list(struct ocfs2_extent_list *el, u32 v_cluster) in ocfs2_search_extent_list() argument
773 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_search_extent_list()
774 rec = &el->l_recs[i]; in ocfs2_search_extent_list()
777 clusters = ocfs2_rec_clusters(el, rec); in ocfs2_search_extent_list()
951 struct ocfs2_extent_list *el = NULL; in ocfs2_num_free_extents() local
956 el = et->et_root_el; in ocfs2_num_free_extents()
967 el = &eb->h_list; in ocfs2_num_free_extents()
970 if (el->l_tree_depth != 0) { in ocfs2_num_free_extents()
975 le16_to_cpu(el->l_tree_depth)); in ocfs2_num_free_extents()
979 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1084 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1088 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1090 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1091 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1103 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1130 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1131 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1163 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1170 el = &eb->h_list; in ocfs2_add_branch()
1172 el = et->et_root_el; in ocfs2_add_branch()
1175 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1177 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1310 /* Link the new branch into the rest of the tree (el will in ocfs2_add_branch()
1312 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1313 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1314 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1315 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1316 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1462 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1468 el = et->et_root_el; in ocfs2_find_branch_target()
1470 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1471 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1477 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1478 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1496 el = &eb->h_list; in ocfs2_find_branch_target()
1498 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1499 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1508 el = et->et_root_el; in ocfs2_find_branch_target()
1509 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1534 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1535 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1600 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1602 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1603 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1612 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1615 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1622 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1623 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1628 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1641 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1650 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1659 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1662 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1669 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1673 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1674 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1684 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1688 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1690 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1694 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1696 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1700 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1703 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1704 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1706 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1717 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1719 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1721 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1726 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1729 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1732 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1733 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1735 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1738 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1739 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1801 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1804 el = root_el; in __ocfs2_find_path()
1805 while (el->l_tree_depth) { in __ocfs2_find_path()
1806 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1810 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1816 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1817 rec = &el->l_recs[i]; in __ocfs2_find_path()
1825 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1830 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1835 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1849 el = &eb->h_list; in __ocfs2_find_path()
1851 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1852 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1857 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1858 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1913 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1917 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2048 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2075 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2077 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2079 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2080 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2091 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2092 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2100 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2101 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2102 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2104 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2220 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2231 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2237 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2238 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2257 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2258 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2259 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2328 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2330 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2337 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2342 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2345 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2534 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2548 el = &eb->h_list; in ocfs2_update_edge_lengths()
2549 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2550 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2551 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2552 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2555 el = path->p_node[i].el; 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()
2575 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2586 el = &eb->h_list; in ocfs2_unlink_path()
2587 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2593 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2600 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2601 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2622 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2815 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_right_leaf() local
2829 el = path->p_node[i].el; in ocfs2_find_cpos_for_right_leaf()
2835 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2836 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
2837 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_right_leaf()
2856 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
2885 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2887 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2897 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3030 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3095 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3096 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3097 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3098 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3158 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3160 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3161 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3190 el = &eb->h_list; in ocfs2_rotate_tree_left()
3197 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3200 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()
3615 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3627 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3668 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3669 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3695 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3728 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3746 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3867 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3874 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3877 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3879 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3890 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3903 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3904 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3905 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3906 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3907 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3915 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3916 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3921 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3922 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3927 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3928 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3929 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3930 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3931 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3935 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3936 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3951 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3961 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3969 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3971 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3979 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3998 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
4014 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4015 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4017 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4084 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4091 el = right_el; in ocfs2_split_record()
4093 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4096 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4128 el = left_el; in ocfs2_split_record()
4142 el = left_el; in ocfs2_split_record()
4144 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4148 rec = &el->l_recs[index]; in ocfs2_split_record()
4252 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4254 el = et->et_root_el; in ocfs2_do_insert_extent()
4263 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4264 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4357 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4372 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4415 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4423 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4424 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4425 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4485 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4491 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4493 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4494 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4505 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4530 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4539 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4541 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4544 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4546 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4550 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4551 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4584 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4590 el = et->et_root_el; in ocfs2_figure_insert_type()
4591 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4593 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4608 el = &eb->h_list; in ocfs2_figure_insert_type()
4619 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4620 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4623 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4624 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4647 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4657 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4688 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4989 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
5003 el = path_leaf_el(path); in ocfs2_split_and_insert()
5004 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
5023 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5036 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5071 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5073 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5084 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5114 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5122 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5167 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5182 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5184 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5195 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5286 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5294 el = path_leaf_el(path); in ocfs2_split_tree()
5295 rec = &el->l_recs[index]; in ocfs2_split_tree()
5358 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5362 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5381 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5394 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5416 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5453 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5460 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5462 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5468 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5520 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5542 el = path_leaf_el(path); in ocfs2_remove_extent()
5543 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5569 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5570 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5578 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5607 el = path_leaf_el(path); in ocfs2_remove_extent()
5608 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5622 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5624 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5630 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7218 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7269 * By now, el will point to the extent list on the bottom most in ocfs2_commit_truncate()
7279 el = path_leaf_el(path); in ocfs2_commit_truncate()
7280 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7289 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7290 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7292 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7322 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()