Lines Matching refs: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 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
972 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1077 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1081 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1083 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1084 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1096 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1123 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1124 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1156 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1163 el = &eb->h_list; in ocfs2_add_branch()
1165 el = et->et_root_el; in ocfs2_add_branch()
1168 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1170 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1305 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1306 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1307 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1308 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1309 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1455 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1461 el = et->et_root_el; in ocfs2_find_branch_target()
1463 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1464 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1470 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1471 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1489 el = &eb->h_list; in ocfs2_find_branch_target()
1491 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1492 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1501 el = et->et_root_el; in ocfs2_find_branch_target()
1502 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1527 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1528 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1593 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1595 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1596 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1605 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1608 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1615 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1616 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1621 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1634 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1643 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1652 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1655 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1662 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1666 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1667 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1677 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1681 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1683 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1687 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1689 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1693 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1696 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1697 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1699 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1710 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1712 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1714 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1719 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1722 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1725 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1726 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1728 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1731 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1732 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1794 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1797 el = root_el; in __ocfs2_find_path()
1798 while (el->l_tree_depth) { in __ocfs2_find_path()
1799 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1803 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1809 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1810 rec = &el->l_recs[i]; in __ocfs2_find_path()
1818 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1823 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1828 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1842 el = &eb->h_list; in __ocfs2_find_path()
1844 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1845 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1850 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1851 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1906 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1910 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2041 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2068 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2070 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2072 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2073 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2084 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2085 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2093 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2094 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2095 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2097 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2213 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2224 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2230 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2231 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2250 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2251 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2252 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2321 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2323 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2330 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2335 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2338 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2527 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2541 el = &eb->h_list; in ocfs2_update_edge_lengths()
2542 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2543 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2544 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2545 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2548 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2549 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2550 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2568 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2579 el = &eb->h_list; in ocfs2_unlink_path()
2580 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2586 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2593 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2594 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2615 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2808 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_right_leaf() local
2822 el = path->p_node[i].el; in ocfs2_find_cpos_for_right_leaf()
2828 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_find_cpos_for_right_leaf()
2829 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_right_leaf()
2830 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_right_leaf()
2849 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos); in ocfs2_find_cpos_for_right_leaf()
2878 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_rotate_rightmost_leaf_left() local
2880 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_rightmost_leaf_left()
2890 ocfs2_remove_empty_extent(el); in ocfs2_rotate_rightmost_leaf_left()
3023 struct ocfs2_extent_list *el; in ocfs2_remove_rightmost_path() local
3088 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3089 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3090 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3091 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3151 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3153 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3154 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3183 el = &eb->h_list; in ocfs2_rotate_tree_left()
3190 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3193 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3254 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3257 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3272 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3274 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3282 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3353 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3357 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3358 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3360 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3361 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3421 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3422 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3440 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3517 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3525 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3582 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3583 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3608 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3620 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3661 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3662 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3688 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3721 BUG_ON(!ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_try_to_merge_extent()
3739 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3860 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3867 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3870 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3872 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3883 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3896 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3897 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3898 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3899 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3900 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3908 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3909 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3914 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3915 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3920 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3921 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3922 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3923 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3924 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3928 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3929 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3944 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3954 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3962 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3964 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3972 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3991 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
4007 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4008 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
4010 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4077 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4084 el = right_el; in ocfs2_split_record()
4086 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4089 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4121 el = left_el; in ocfs2_split_record()
4135 el = left_el; in ocfs2_split_record()
4137 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4141 rec = &el->l_recs[index]; in ocfs2_split_record()
4245 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4247 el = et->et_root_el; in ocfs2_do_insert_extent()
4256 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4257 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4350 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4365 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4408 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4416 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4417 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4418 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4478 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4484 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4486 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4487 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4498 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4523 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4532 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4534 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4537 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4539 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4543 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4544 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4577 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4583 el = et->et_root_el; in ocfs2_figure_insert_type()
4584 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4586 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4601 el = &eb->h_list; in ocfs2_figure_insert_type()
4612 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4613 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4616 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4617 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4640 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4650 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4681 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4982 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
4996 el = path_leaf_el(path); in ocfs2_split_and_insert()
4997 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
5016 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5029 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5064 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5066 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5077 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5107 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5115 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5160 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5175 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5177 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5188 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5279 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5287 el = path_leaf_el(path); in ocfs2_split_tree()
5288 rec = &el->l_recs[index]; in ocfs2_split_tree()
5351 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5355 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5374 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5387 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5409 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5446 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5453 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5455 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5461 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5513 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5535 el = path_leaf_el(path); in ocfs2_remove_extent()
5536 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5562 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5563 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5571 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5600 el = path_leaf_el(path); in ocfs2_remove_extent()
5601 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5615 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5617 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5623 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7211 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7272 el = path_leaf_el(path); in ocfs2_commit_truncate()
7273 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7282 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7283 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7285 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7315 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()