• Home
  • Raw
  • Download

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()
961 struct ocfs2_extent_list *el = NULL; in ocfs2_num_free_extents() local
966 el = et->et_root_el; in ocfs2_num_free_extents()
977 el = &eb->h_list; in ocfs2_num_free_extents()
980 BUG_ON(el->l_tree_depth != 0); in ocfs2_num_free_extents()
982 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec); in ocfs2_num_free_extents()
1088 static inline u32 ocfs2_sum_rightmost_rec(struct ocfs2_extent_list *el) in ocfs2_sum_rightmost_rec() argument
1092 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_sum_rightmost_rec()
1094 return le32_to_cpu(el->l_recs[i].e_cpos) + in ocfs2_sum_rightmost_rec()
1095 ocfs2_rec_clusters(el, &el->l_recs[i]); in ocfs2_sum_rightmost_rec()
1107 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_branch() local
1134 el = path_leaf_el(path); in ocfs2_adjust_rightmost_branch()
1135 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1]; in ocfs2_adjust_rightmost_branch()
1167 struct ocfs2_extent_list *el; in ocfs2_add_branch() local
1174 el = &eb->h_list; in ocfs2_add_branch()
1176 el = et->et_root_el; in ocfs2_add_branch()
1179 BUG_ON(!el->l_tree_depth); in ocfs2_add_branch()
1181 new_blocks = le16_to_cpu(el->l_tree_depth); in ocfs2_add_branch()
1296 i = le16_to_cpu(el->l_next_free_rec); in ocfs2_add_branch()
1297 el->l_recs[i].e_blkno = cpu_to_le64(next_blkno); in ocfs2_add_branch()
1298 el->l_recs[i].e_cpos = cpu_to_le32(new_cpos); in ocfs2_add_branch()
1299 el->l_recs[i].e_int_clusters = 0; in ocfs2_add_branch()
1300 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_add_branch()
1436 struct ocfs2_extent_list *el; in ocfs2_find_branch_target() local
1442 el = et->et_root_el; in ocfs2_find_branch_target()
1444 while(le16_to_cpu(el->l_tree_depth) > 1) { in ocfs2_find_branch_target()
1445 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_find_branch_target()
1452 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_find_branch_target()
1453 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in ocfs2_find_branch_target()
1472 el = &eb->h_list; in ocfs2_find_branch_target()
1474 if (le16_to_cpu(el->l_next_free_rec) < in ocfs2_find_branch_target()
1475 le16_to_cpu(el->l_count)) { in ocfs2_find_branch_target()
1484 el = et->et_root_el; in ocfs2_find_branch_target()
1485 if (!lowest_bh && (el->l_next_free_rec == el->l_count)) in ocfs2_find_branch_target()
1510 struct ocfs2_extent_list *el = et->et_root_el; in ocfs2_grow_tree() local
1511 int depth = le16_to_cpu(el->l_tree_depth); in ocfs2_grow_tree()
1578 static void ocfs2_shift_records_right(struct ocfs2_extent_list *el) in ocfs2_shift_records_right() argument
1580 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_shift_records_right()
1581 int count = le16_to_cpu(el->l_count); in ocfs2_shift_records_right()
1590 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right()
1593 static void ocfs2_rotate_leaf(struct ocfs2_extent_list *el, in ocfs2_rotate_leaf() argument
1600 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_rotate_leaf()
1601 has_empty = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_rotate_leaf()
1606 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty); in ocfs2_rotate_leaf()
1619 el->l_recs[i] = el->l_recs[i+1]; in ocfs2_rotate_leaf()
1628 rec = &el->l_recs[i]; in ocfs2_rotate_leaf()
1637 le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1640 BUG_ON(insert_index >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1647 BUG_ON(next_free >= le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1651 memmove(&el->l_recs[insert_index + 1], in ocfs2_rotate_leaf()
1652 &el->l_recs[insert_index], in ocfs2_rotate_leaf()
1662 el->l_next_free_rec = cpu_to_le16(next_free); in ocfs2_rotate_leaf()
1666 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count)); in ocfs2_rotate_leaf()
1668 el->l_recs[insert_index] = *insert_rec; in ocfs2_rotate_leaf()
1672 static void ocfs2_remove_empty_extent(struct ocfs2_extent_list *el) in ocfs2_remove_empty_extent() argument
1674 int size, num_recs = le16_to_cpu(el->l_next_free_rec); in ocfs2_remove_empty_extent()
1678 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_remove_empty_extent()
1681 memmove(&el->l_recs[0], &el->l_recs[1], size); in ocfs2_remove_empty_extent()
1682 memset(&el->l_recs[num_recs], 0, in ocfs2_remove_empty_extent()
1684 el->l_next_free_rec = cpu_to_le16(num_recs); in ocfs2_remove_empty_extent()
1695 static void ocfs2_create_empty_extent(struct ocfs2_extent_list *el) in ocfs2_create_empty_extent() argument
1697 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_create_empty_extent()
1699 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_create_empty_extent()
1704 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_create_empty_extent()
1707 mlog_bug_on_msg(el->l_count == el->l_next_free_rec, in ocfs2_create_empty_extent()
1710 le16_to_cpu(el->l_count), in ocfs2_create_empty_extent()
1711 le16_to_cpu(el->l_tree_depth)); in ocfs2_create_empty_extent()
1713 ocfs2_shift_records_right(el); in ocfs2_create_empty_extent()
1716 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_create_empty_extent()
1717 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_create_empty_extent()
1779 struct ocfs2_extent_list *el; in __ocfs2_find_path() local
1782 el = root_el; in __ocfs2_find_path()
1783 while (el->l_tree_depth) { in __ocfs2_find_path()
1784 if (le16_to_cpu(el->l_next_free_rec) == 0) { in __ocfs2_find_path()
1788 le16_to_cpu(el->l_tree_depth)); in __ocfs2_find_path()
1794 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) { in __ocfs2_find_path()
1795 rec = &el->l_recs[i]; in __ocfs2_find_path()
1803 ocfs2_rec_clusters(el, rec); in __ocfs2_find_path()
1808 blkno = le64_to_cpu(el->l_recs[i].e_blkno); in __ocfs2_find_path()
1813 le16_to_cpu(el->l_tree_depth), i); in __ocfs2_find_path()
1827 el = &eb->h_list; in __ocfs2_find_path()
1829 if (le16_to_cpu(el->l_next_free_rec) > in __ocfs2_find_path()
1830 le16_to_cpu(el->l_count)) { in __ocfs2_find_path()
1835 le16_to_cpu(el->l_next_free_rec), in __ocfs2_find_path()
1836 le16_to_cpu(el->l_count)); in __ocfs2_find_path()
1891 struct ocfs2_extent_list *el = &eb->h_list; in find_leaf_ins() local
1895 if (le16_to_cpu(el->l_tree_depth) == 0) { in find_leaf_ins()
2028 struct ocfs2_extent_list *el, *left_el, *right_el; in ocfs2_complete_edge_insert() local
2055 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2057 left_rec = &el->l_recs[idx]; in ocfs2_complete_edge_insert()
2059 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2060 right_rec = &el->l_recs[0]; in ocfs2_complete_edge_insert()
2072 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2073 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2081 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2082 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2083 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2085 ocfs2_adjust_root_records(el, left_el, right_el, in ocfs2_complete_edge_insert()
2201 struct ocfs2_extent_list *el; in ocfs2_find_cpos_for_left_leaf() local
2212 el = path->p_node[i].el; in ocfs2_find_cpos_for_left_leaf()
2218 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) { in ocfs2_find_cpos_for_left_leaf()
2219 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { in ocfs2_find_cpos_for_left_leaf()
2238 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos); in ocfs2_find_cpos_for_left_leaf()
2239 *cpos = *cpos + ocfs2_rec_clusters(el, in ocfs2_find_cpos_for_left_leaf()
2240 &el->l_recs[j - 1]); in ocfs2_find_cpos_for_left_leaf()
2309 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos) in ocfs2_leftmost_rec_contains() argument
2311 int next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_leftmost_rec_contains()
2318 rec = &el->l_recs[0]; in ocfs2_leftmost_rec_contains()
2323 rec = &el->l_recs[1]; in ocfs2_leftmost_rec_contains()
2326 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_leftmost_rec_contains()
2515 struct ocfs2_extent_list *el; in ocfs2_update_edge_lengths() local
2544 el = &eb->h_list; in ocfs2_update_edge_lengths()
2545 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0); in ocfs2_update_edge_lengths()
2546 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2547 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2548 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_update_edge_lengths()
2551 el = path->p_node[i].el; in ocfs2_update_edge_lengths()
2552 idx = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_update_edge_lengths()
2553 rec = &el->l_recs[idx]; in ocfs2_update_edge_lengths()
2571 struct ocfs2_extent_list *el; in ocfs2_unlink_path() local
2582 el = &eb->h_list; in ocfs2_unlink_path()
2583 if (le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_unlink_path()
2589 le16_to_cpu(el->l_next_free_rec)); in ocfs2_unlink_path()
2596 el->l_next_free_rec = 0; in ocfs2_unlink_path()
2597 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_unlink_path()
2618 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2619 struct ocfs2_extent_list *el; in ocfs2_unlink_subtree() local
2622 el = path_leaf_el(left_path); 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
3108 el = et->et_root_el; in ocfs2_remove_rightmost_path()
3109 el->l_tree_depth = 0; in ocfs2_remove_rightmost_path()
3110 el->l_next_free_rec = 0; in ocfs2_remove_rightmost_path()
3111 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_remove_rightmost_path()
3171 struct ocfs2_extent_list *el; in ocfs2_rotate_tree_left() local
3173 el = path_leaf_el(path); in ocfs2_rotate_tree_left()
3174 if (!ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_rotate_tree_left()
3203 el = &eb->h_list; in ocfs2_rotate_tree_left()
3210 if (le16_to_cpu(el->l_next_free_rec) > 1) in ocfs2_rotate_tree_left()
3213 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_rotate_tree_left()
3275 static void ocfs2_cleanup_merge(struct ocfs2_extent_list *el, in ocfs2_cleanup_merge() argument
3278 struct ocfs2_extent_rec *rec = &el->l_recs[index]; in ocfs2_cleanup_merge()
3293 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_cleanup_merge()
3295 memmove(&el->l_recs[1], &el->l_recs[0], size); in ocfs2_cleanup_merge()
3303 memset(&el->l_recs[0], 0, sizeof(struct ocfs2_extent_rec)); in ocfs2_cleanup_merge()
3374 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right() local
3378 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec)); in ocfs2_merge_rec_right()
3379 left_rec = &el->l_recs[index]; in ocfs2_merge_rec_right()
3381 if (index == le16_to_cpu(el->l_next_free_rec) - 1 && in ocfs2_merge_rec_right()
3382 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) { in ocfs2_merge_rec_right()
3442 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1); in ocfs2_merge_rec_right()
3443 right_rec = &el->l_recs[index + 1]; in ocfs2_merge_rec_right()
3461 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_right()
3538 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left() local
3546 right_rec = &el->l_recs[index]; in ocfs2_merge_rec_left()
3603 left_rec = &el->l_recs[index - 1]; in ocfs2_merge_rec_left()
3604 if (ocfs2_is_empty_extent(&el->l_recs[0])) in ocfs2_merge_rec_left()
3631 ocfs2_cleanup_merge(el, index); in ocfs2_merge_rec_left()
3643 le16_to_cpu(el->l_next_free_rec) == 1) { in ocfs2_merge_rec_left()
3676 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_try_to_merge_extent() local
3677 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()
3737 rec = &el->l_recs[split_index]; in ocfs2_try_to_merge_extent()
3839 struct ocfs2_extent_list *el, in ocfs2_insert_at_leaf() argument
3846 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_insert_at_leaf()
3849 i = ocfs2_search_extent_list(el, le32_to_cpu(insert_rec->e_cpos)); in ocfs2_insert_at_leaf()
3851 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3862 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3875 if (le16_to_cpu(el->l_next_free_rec) == 0 || in ocfs2_insert_at_leaf()
3876 ((le16_to_cpu(el->l_next_free_rec) == 1) && in ocfs2_insert_at_leaf()
3877 ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_insert_at_leaf()
3878 el->l_recs[0] = *insert_rec; in ocfs2_insert_at_leaf()
3879 el->l_next_free_rec = cpu_to_le16(1); in ocfs2_insert_at_leaf()
3887 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_insert_at_leaf()
3888 rec = &el->l_recs[i]; in ocfs2_insert_at_leaf()
3893 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >= in ocfs2_insert_at_leaf()
3894 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3899 le16_to_cpu(el->l_tree_depth), in ocfs2_insert_at_leaf()
3900 le16_to_cpu(el->l_count), in ocfs2_insert_at_leaf()
3901 le16_to_cpu(el->l_next_free_rec), in ocfs2_insert_at_leaf()
3902 le32_to_cpu(el->l_recs[i].e_cpos), in ocfs2_insert_at_leaf()
3903 le16_to_cpu(el->l_recs[i].e_leaf_clusters), in ocfs2_insert_at_leaf()
3907 el->l_recs[i] = *insert_rec; in ocfs2_insert_at_leaf()
3908 le16_add_cpu(&el->l_next_free_rec, 1); in ocfs2_insert_at_leaf()
3923 ocfs2_rotate_leaf(el, insert_rec); in ocfs2_insert_at_leaf()
3933 struct ocfs2_extent_list *el; in ocfs2_adjust_rightmost_records() local
3941 el = path->p_node[i].el; in ocfs2_adjust_rightmost_records()
3943 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_adjust_rightmost_records()
3952 rec = &el->l_recs[next_free - 1]; in ocfs2_adjust_rightmost_records()
3971 struct ocfs2_extent_list *el; in ocfs2_append_rec_to_path() local
3987 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
3988 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_append_rec_to_path()
3990 (next_free == 1 && ocfs2_is_empty_extent(&el->l_recs[0]))) { in ocfs2_append_rec_to_path()
4057 struct ocfs2_extent_list *left_el = NULL, *right_el, *insert_el, *el; in ocfs2_split_record() local
4064 el = right_el; in ocfs2_split_record()
4066 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4069 BUG_ON(ocfs2_is_empty_extent(&el->l_recs[0])); in ocfs2_split_record()
4101 el = left_el; in ocfs2_split_record()
4115 el = left_el; in ocfs2_split_record()
4117 index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_record()
4121 rec = &el->l_recs[index]; in ocfs2_split_record()
4225 struct ocfs2_extent_list *el; in ocfs2_do_insert_extent() local
4227 el = et->et_root_el; in ocfs2_do_insert_extent()
4236 if (le16_to_cpu(el->l_tree_depth) == 0) { in ocfs2_do_insert_extent()
4237 ocfs2_insert_at_leaf(et, insert_rec, el, type); in ocfs2_do_insert_extent()
4330 struct ocfs2_extent_list *el, int index, in ocfs2_figure_merge_contig_type() argument
4345 rec = &el->l_recs[index - 1]; in ocfs2_figure_merge_contig_type()
4389 if (split_rec->e_cpos == el->l_recs[index].e_cpos) in ocfs2_figure_merge_contig_type()
4397 if (index < (le16_to_cpu(el->l_next_free_rec) - 1)) in ocfs2_figure_merge_contig_type()
4398 rec = &el->l_recs[index + 1]; in ocfs2_figure_merge_contig_type()
4399 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) && in ocfs2_figure_merge_contig_type()
4460 struct ocfs2_extent_list *el, in ocfs2_figure_contig_type() argument
4466 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_contig_type()
4468 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_figure_contig_type()
4469 contig_type = ocfs2_et_extent_contig(et, &el->l_recs[i], in ocfs2_figure_contig_type()
4480 &el->l_recs[insert->ins_contig_index]; in ocfs2_figure_contig_type()
4505 struct ocfs2_extent_list *el, in ocfs2_figure_appending_type() argument
4514 BUG_ON(le16_to_cpu(el->l_tree_depth) != 0); in ocfs2_figure_appending_type()
4516 if (!el->l_next_free_rec) in ocfs2_figure_appending_type()
4519 if (ocfs2_is_empty_extent(&el->l_recs[0])) { in ocfs2_figure_appending_type()
4521 if (le16_to_cpu(el->l_next_free_rec) == 1) in ocfs2_figure_appending_type()
4525 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_figure_appending_type()
4526 rec = &el->l_recs[i]; in ocfs2_figure_appending_type()
4559 struct ocfs2_extent_list *el; in ocfs2_figure_insert_type() local
4565 el = et->et_root_el; in ocfs2_figure_insert_type()
4566 insert->ins_tree_depth = le16_to_cpu(el->l_tree_depth); in ocfs2_figure_insert_type()
4568 if (el->l_tree_depth) { in ocfs2_figure_insert_type()
4583 el = &eb->h_list; in ocfs2_figure_insert_type()
4594 *free_records = le16_to_cpu(el->l_count) - in ocfs2_figure_insert_type()
4595 le16_to_cpu(el->l_next_free_rec); in ocfs2_figure_insert_type()
4598 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4599 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4622 el = path_leaf_el(path); in ocfs2_figure_insert_type()
4632 ocfs2_figure_contig_type(et, insert, el, insert_rec); in ocfs2_figure_insert_type()
4663 ocfs2_figure_appending_type(insert, el, insert_rec); in ocfs2_figure_insert_type()
4964 struct ocfs2_extent_list *el; in ocfs2_split_and_insert() local
4978 el = path_leaf_el(path); in ocfs2_split_and_insert()
4979 split_index = ocfs2_search_extent_list(el, cpos); in ocfs2_split_and_insert()
4998 struct ocfs2_extent_list *el, in ocfs2_replace_extent_rec() argument
5011 el->l_recs[split_index] = *split_rec; in ocfs2_replace_extent_rec()
5046 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_split_extent() local
5048 struct ocfs2_extent_rec *rec = &el->l_recs[split_index]; in ocfs2_split_extent()
5060 ret = ocfs2_figure_merge_contig_type(et, path, el, in ocfs2_split_extent()
5096 ctxt.c_has_empty_extent = ocfs2_is_empty_extent(&el->l_recs[0]); in ocfs2_split_extent()
5104 ret = ocfs2_replace_extent_rec(handle, et, path, el, in ocfs2_split_extent()
5149 struct ocfs2_extent_list *el; in ocfs2_change_extent_flag() local
5164 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5166 index = ocfs2_search_extent_list(el, cpos); in ocfs2_change_extent_flag()
5177 rec = &el->l_recs[index]; in ocfs2_change_extent_flag()
5268 struct ocfs2_extent_list *rightmost_el, *el; in ocfs2_split_tree() local
5276 el = path_leaf_el(path); in ocfs2_split_tree()
5277 rec = &el->l_recs[index]; in ocfs2_split_tree()
5340 struct ocfs2_extent_list *el = path_leaf_el(path); in ocfs2_truncate_rec() local
5344 if (ocfs2_is_empty_extent(&el->l_recs[0]) && index > 0) { in ocfs2_truncate_rec()
5354 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) && in ocfs2_truncate_rec()
5367 rec = &el->l_recs[index]; in ocfs2_truncate_rec()
5389 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) { in ocfs2_truncate_rec()
5426 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_truncate_rec()
5433 ocfs2_cleanup_merge(el, index); in ocfs2_truncate_rec()
5436 next_free = le16_to_cpu(el->l_next_free_rec); in ocfs2_truncate_rec()
5442 rec = &el->l_recs[next_free - 1]; in ocfs2_truncate_rec()
5496 struct ocfs2_extent_list *el; in ocfs2_remove_extent() local
5518 el = path_leaf_el(path); in ocfs2_remove_extent()
5519 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5545 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5546 rec_range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5554 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
5583 el = path_leaf_el(path); in ocfs2_remove_extent()
5584 index = ocfs2_search_extent_list(el, cpos); in ocfs2_remove_extent()
5598 rec = &el->l_recs[index]; in ocfs2_remove_extent()
5600 ocfs2_rec_clusters(el, rec); in ocfs2_remove_extent()
5606 ocfs2_rec_clusters(el, rec)); in ocfs2_remove_extent()
7032 struct ocfs2_extent_list *el; in ocfs2_commit_truncate() local
7093 el = path_leaf_el(path); in ocfs2_commit_truncate()
7094 if (le16_to_cpu(el->l_next_free_rec) == 0) { in ocfs2_commit_truncate()
7103 i = le16_to_cpu(el->l_next_free_rec) - 1; in ocfs2_commit_truncate()
7104 rec = &el->l_recs[i]; in ocfs2_commit_truncate()
7106 range = le32_to_cpu(rec->e_cpos) + ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()
7136 trunc_len = ocfs2_rec_clusters(el, rec); in ocfs2_commit_truncate()