Lines Matching refs:left_path

2031 				       struct ocfs2_path *left_path,  in ocfs2_complete_edge_insert()  argument
2038 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2052 left_el = path_leaf_el(left_path); in ocfs2_complete_edge_insert()
2054 for(i = left_path->p_tree_depth - 1; i > subtree_index; i--) { in ocfs2_complete_edge_insert()
2063 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2073 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2080 left_el = left_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()
2094 left_path->p_node[subtree_index + 1].bh->b_blocknr); in ocfs2_complete_edge_insert()
2096 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2103 struct ocfs2_path *left_path, in ocfs2_rotate_subtree_right() argument
2114 left_leaf_bh = path_leaf_bh(left_path); in ocfs2_rotate_subtree_right()
2115 left_el = path_leaf_el(left_path); in ocfs2_rotate_subtree_right()
2134 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_right()
2153 left_path, i); in ocfs2_rotate_subtree_right()
2192 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2303 static int ocfs2_rotate_requires_path_adjustment(struct ocfs2_path *left_path, in ocfs2_rotate_requires_path_adjustment() argument
2310 left_el = path_leaf_el(left_path); in ocfs2_rotate_requires_path_adjustment()
2367 struct ocfs2_path *left_path = NULL; in ocfs2_rotate_tree_right() local
2372 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2373 if (!left_path) { in ocfs2_rotate_tree_right()
2421 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_rotate_tree_right()
2427 mlog_bug_on_msg(path_leaf_bh(left_path) == in ocfs2_rotate_tree_right()
2435 path_leaf_bh(left_path)->b_blocknr); in ocfs2_rotate_tree_right()
2438 ocfs2_rotate_requires_path_adjustment(left_path, in ocfs2_rotate_tree_right()
2455 *ret_left_path = left_path; in ocfs2_rotate_tree_right()
2459 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2473 ret = ocfs2_rotate_subtree_right(handle, et, left_path, in ocfs2_rotate_tree_right()
2494 *ret_left_path = left_path; in ocfs2_rotate_tree_right()
2503 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2513 ocfs2_free_path(left_path); in ocfs2_rotate_tree_right()
2621 struct ocfs2_path *left_path, in ocfs2_unlink_subtree() argument
2627 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_unlink_subtree()
2628 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2632 el = path_leaf_el(left_path); in ocfs2_unlink_subtree()
2645 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_unlink_subtree()
2649 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_unlink_subtree()
2657 struct ocfs2_path *left_path, in ocfs2_rotate_subtree_left() argument
2671 left_leaf_el = path_leaf_el(left_path); in ocfs2_rotate_subtree_left()
2672 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_left()
2748 left_path, i); in ocfs2_rotate_subtree_left()
2776 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_rotate_subtree_left()
2780 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2783 left_path); in ocfs2_rotate_subtree_left()
2789 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2804 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2924 struct ocfs2_path *left_path = NULL; in __ocfs2_rotate_tree_left() local
2938 left_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2939 if (!left_path) { in __ocfs2_rotate_tree_left()
2945 ocfs2_cp_path(left_path, path); in __ocfs2_rotate_tree_left()
2961 subtree_root = ocfs2_find_subtree_root(et, left_path, in __ocfs2_rotate_tree_left()
2970 orig_credits, left_path); in __ocfs2_rotate_tree_left()
2981 left_path, 0); in __ocfs2_rotate_tree_left()
2987 ret = ocfs2_rotate_subtree_left(handle, et, left_path, in __ocfs2_rotate_tree_left()
3014 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3016 ret = ocfs2_find_cpos_for_right_leaf(sb, left_path, in __ocfs2_rotate_tree_left()
3026 ocfs2_free_path(left_path); in __ocfs2_rotate_tree_left()
3038 struct ocfs2_path *left_path = NULL; in ocfs2_remove_rightmost_path() local
3076 left_path = ocfs2_new_path_from_path(path); in ocfs2_remove_rightmost_path()
3077 if (!left_path) { in ocfs2_remove_rightmost_path()
3083 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_remove_rightmost_path()
3089 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_remove_rightmost_path()
3095 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_remove_rightmost_path()
3097 ocfs2_unlink_subtree(handle, et, left_path, path, in ocfs2_remove_rightmost_path()
3100 left_path); in ocfs2_remove_rightmost_path()
3106 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3129 ocfs2_free_path(left_path); in ocfs2_remove_rightmost_path()
3294 struct ocfs2_path *left_path, in ocfs2_get_right_path() argument
3305 BUG_ON(left_path->p_tree_depth == 0); in ocfs2_get_right_path()
3307 left_el = path_leaf_el(left_path); in ocfs2_get_right_path()
3311 left_path, &right_cpos); in ocfs2_get_right_path()
3320 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3347 static int ocfs2_merge_rec_right(struct ocfs2_path *left_path, in ocfs2_merge_rec_right() argument
3360 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right()
3361 struct buffer_head *bh = path_leaf_bh(left_path); in ocfs2_merge_rec_right()
3370 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3389 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_right()
3400 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_right()
3420 left_path, i); in ocfs2_merge_rec_right()
3432 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path, in ocfs2_merge_rec_right()
3433 path_num_items(left_path) - 1); in ocfs2_merge_rec_right()
3452 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3466 struct ocfs2_path *left_path = NULL; in ocfs2_get_left_path() local
3483 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3484 if (!left_path) { in ocfs2_get_left_path()
3490 ret = ocfs2_find_path(et->et_ci, left_path, left_cpos); in ocfs2_get_left_path()
3496 *ret_left_path = left_path; in ocfs2_get_left_path()
3499 ocfs2_free_path(left_path); in ocfs2_get_left_path()
3527 struct ocfs2_path *left_path = NULL; in ocfs2_merge_rec_left() local
3535 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3541 left_el = path_leaf_el(left_path); in ocfs2_merge_rec_left()
3551 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_left()
3556 left_path); in ocfs2_merge_rec_left()
3562 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_left()
3582 left_path, i); in ocfs2_merge_rec_left()
3620 if (left_path) { in ocfs2_merge_rec_left()
3621 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_merge_rec_left()
3642 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3643 left_path = NULL; in ocfs2_merge_rec_left()
3645 ocfs2_complete_edge_insert(handle, left_path, in ocfs2_merge_rec_left()
3649 ocfs2_free_path(left_path); in ocfs2_merge_rec_left()
3958 struct ocfs2_path *left_path = NULL; in ocfs2_append_rec_to_path() local
3997 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
3998 if (!left_path) { in ocfs2_append_rec_to_path()
4004 ret = ocfs2_find_path(et->et_ci, left_path, in ocfs2_append_rec_to_path()
4026 *ret_left_path = left_path; in ocfs2_append_rec_to_path()
4030 ocfs2_free_path(left_path); in ocfs2_append_rec_to_path()
4036 struct ocfs2_path *left_path, in ocfs2_split_record() argument
4047 if (left_path) in ocfs2_split_record()
4048 left_el = path_leaf_el(left_path); in ocfs2_split_record()
4054 if (index == 0 && left_path) { in ocfs2_split_record()
4095 BUG_ON(!left_path); in ocfs2_split_record()
4123 struct ocfs2_path *left_path, in ocfs2_insert_path() argument
4131 if (left_path) { in ocfs2_insert_path()
4138 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth); in ocfs2_insert_path()
4144 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_insert_path()
4167 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4175 if (left_path) in ocfs2_insert_path()
4177 path_leaf_bh(left_path)); in ocfs2_insert_path()
4184 if (left_path) { in ocfs2_insert_path()
4191 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_insert_path()
4193 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4210 struct ocfs2_path *left_path = NULL; in ocfs2_do_insert_extent() local
4267 right_path, &left_path); in ocfs2_do_insert_extent()
4286 right_path, &left_path); in ocfs2_do_insert_extent()
4293 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4308 ocfs2_free_path(left_path); in ocfs2_do_insert_extent()
4325 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4338 left_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4339 if (!left_path) in ocfs2_figure_merge_contig_type()
4342 status = ocfs2_find_path(et->et_ci, left_path, in ocfs2_figure_merge_contig_type()
4347 new_el = path_leaf_el(left_path); in ocfs2_figure_merge_contig_type()
4351 bh = path_leaf_bh(left_path); in ocfs2_figure_merge_contig_type()
4434 ocfs2_free_path(left_path); in ocfs2_figure_merge_contig_type()
5125 struct ocfs2_path *left_path = NULL; in ocfs2_change_extent_flag() local
5129 left_path = ocfs2_new_path_from_et(et); in ocfs2_change_extent_flag()
5130 if (!left_path) { in ocfs2_change_extent_flag()
5136 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_change_extent_flag()
5141 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5182 ret = ocfs2_split_extent(handle, et, left_path, in ocfs2_change_extent_flag()
5189 ocfs2_free_path(left_path); in ocfs2_change_extent_flag()
5319 struct ocfs2_path *left_path = NULL; in ocfs2_truncate_rec() local
5370 left_path = ocfs2_new_path_from_path(path); in ocfs2_truncate_rec()
5371 if (!left_path) { in ocfs2_truncate_rec()
5377 ret = ocfs2_find_path(et->et_ci, left_path, in ocfs2_truncate_rec()
5400 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_truncate_rec()
5446 if (left_path) { in ocfs2_truncate_rec()
5449 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_truncate_rec()
5450 ocfs2_complete_edge_insert(handle, left_path, path, in ocfs2_truncate_rec()
5463 ocfs2_free_path(left_path); in ocfs2_truncate_rec()