Lines Matching refs:left_path

2052 				       struct ocfs2_path *left_path,  in ocfs2_complete_edge_insert()  argument
2073 left_el = path_leaf_el(left_path); in ocfs2_complete_edge_insert()
2075 for(i = left_path->p_tree_depth - 1; i > subtree_index; i--) { in ocfs2_complete_edge_insert()
2084 el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2093 ocfs2_journal_dirty(handle, left_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2100 left_el = left_path->p_node[i].el; in ocfs2_complete_edge_insert()
2109 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2110 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2114 left_path->p_node[subtree_index + 1].bh->b_blocknr); in ocfs2_complete_edge_insert()
2116 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2123 struct ocfs2_path *left_path, in ocfs2_rotate_subtree_right() argument
2134 left_leaf_bh = path_leaf_bh(left_path); in ocfs2_rotate_subtree_right()
2135 left_el = path_leaf_el(left_path); in ocfs2_rotate_subtree_right()
2153 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_right()
2172 left_path, i); in ocfs2_rotate_subtree_right()
2211 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2321 static int ocfs2_rotate_requires_path_adjustment(struct ocfs2_path *left_path, in ocfs2_rotate_requires_path_adjustment() argument
2328 left_el = path_leaf_el(left_path); in ocfs2_rotate_requires_path_adjustment()
2385 struct ocfs2_path *left_path = NULL; in ocfs2_rotate_tree_right() local
2390 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2391 if (!left_path) { in ocfs2_rotate_tree_right()
2439 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_rotate_tree_right()
2445 mlog_bug_on_msg(path_leaf_bh(left_path) == in ocfs2_rotate_tree_right()
2453 path_leaf_bh(left_path)->b_blocknr); in ocfs2_rotate_tree_right()
2456 ocfs2_rotate_requires_path_adjustment(left_path, in ocfs2_rotate_tree_right()
2473 *ret_left_path = left_path; in ocfs2_rotate_tree_right()
2477 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2491 ret = ocfs2_rotate_subtree_right(handle, et, left_path, in ocfs2_rotate_tree_right()
2512 *ret_left_path = left_path; in ocfs2_rotate_tree_right()
2521 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2531 ocfs2_free_path(left_path); in ocfs2_rotate_tree_right()
2624 struct ocfs2_path *left_path, in ocfs2_unlink_subtree() argument
2630 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_unlink_subtree()
2631 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; 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()
2782 ret = ocfs2_update_edge_lengths(handle, et, left_path); in ocfs2_rotate_subtree_left()
2788 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_rotate_subtree_left()
2803 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2922 struct ocfs2_path *left_path = NULL; in __ocfs2_rotate_tree_left() local
2937 left_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2938 if (!left_path) { in __ocfs2_rotate_tree_left()
2944 ocfs2_cp_path(left_path, path); in __ocfs2_rotate_tree_left()
2960 subtree_root = ocfs2_find_subtree_root(et, left_path, in __ocfs2_rotate_tree_left()
2969 orig_credits, left_path); in __ocfs2_rotate_tree_left()
2980 left_path, 0); in __ocfs2_rotate_tree_left()
2986 ret = ocfs2_rotate_subtree_left(handle, et, left_path, in __ocfs2_rotate_tree_left()
3013 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3015 ret = ocfs2_find_cpos_for_right_leaf(sb, left_path, in __ocfs2_rotate_tree_left()
3025 ocfs2_free_path(left_path); in __ocfs2_rotate_tree_left()
3037 struct ocfs2_path *left_path = NULL; in ocfs2_remove_rightmost_path() local
3063 left_path = ocfs2_new_path_from_path(path); in ocfs2_remove_rightmost_path()
3064 if (!left_path) { in ocfs2_remove_rightmost_path()
3070 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_remove_rightmost_path()
3076 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_remove_rightmost_path()
3082 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_remove_rightmost_path()
3084 ocfs2_unlink_subtree(handle, et, left_path, path, in ocfs2_remove_rightmost_path()
3086 ret = ocfs2_update_edge_lengths(handle, et, left_path); in ocfs2_remove_rightmost_path()
3092 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data; in ocfs2_remove_rightmost_path()
3115 ocfs2_free_path(left_path); in ocfs2_remove_rightmost_path()
3303 struct ocfs2_path *left_path, in ocfs2_get_right_path() argument
3314 BUG_ON(left_path->p_tree_depth == 0); in ocfs2_get_right_path()
3316 left_el = path_leaf_el(left_path); in ocfs2_get_right_path()
3320 left_path, &right_cpos); in ocfs2_get_right_path()
3329 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3356 static int ocfs2_merge_rec_right(struct ocfs2_path *left_path, in ocfs2_merge_rec_right() argument
3369 struct ocfs2_extent_list *el = path_leaf_el(left_path); in ocfs2_merge_rec_right()
3370 struct buffer_head *bh = path_leaf_bh(left_path); in ocfs2_merge_rec_right()
3379 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3398 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_right()
3409 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_right()
3429 left_path, i); in ocfs2_merge_rec_right()
3441 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path, in ocfs2_merge_rec_right()
3442 path_num_items(left_path) - 1); in ocfs2_merge_rec_right()
3461 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3475 struct ocfs2_path *left_path = NULL; in ocfs2_get_left_path() local
3492 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3493 if (!left_path) { in ocfs2_get_left_path()
3499 ret = ocfs2_find_path(et->et_ci, left_path, left_cpos); in ocfs2_get_left_path()
3505 *ret_left_path = left_path; in ocfs2_get_left_path()
3508 ocfs2_free_path(left_path); in ocfs2_get_left_path()
3536 struct ocfs2_path *left_path = NULL; in ocfs2_merge_rec_left() local
3544 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3550 left_el = path_leaf_el(left_path); in ocfs2_merge_rec_left()
3560 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_left()
3565 left_path); in ocfs2_merge_rec_left()
3571 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_left()
3591 left_path, i); in ocfs2_merge_rec_left()
3627 if (left_path) { in ocfs2_merge_rec_left()
3628 ocfs2_journal_dirty(handle, path_leaf_bh(left_path)); in ocfs2_merge_rec_left()
3657 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3659 ocfs2_complete_edge_insert(handle, left_path, in ocfs2_merge_rec_left()
3663 ocfs2_free_path(left_path); in ocfs2_merge_rec_left()
4007 struct ocfs2_path *left_path = NULL; in ocfs2_append_rec_to_path() local
4046 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4047 if (!left_path) { in ocfs2_append_rec_to_path()
4053 ret = ocfs2_find_path(et->et_ci, left_path, in ocfs2_append_rec_to_path()
4075 *ret_left_path = left_path; in ocfs2_append_rec_to_path()
4079 ocfs2_free_path(left_path); in ocfs2_append_rec_to_path()
4085 struct ocfs2_path *left_path, in ocfs2_split_record() argument
4096 if (left_path) in ocfs2_split_record()
4097 left_el = path_leaf_el(left_path); in ocfs2_split_record()
4103 if (index == 0 && left_path) { in ocfs2_split_record()
4144 BUG_ON(!left_path); in ocfs2_split_record()
4172 struct ocfs2_path *left_path, in ocfs2_insert_path() argument
4180 if (left_path) { in ocfs2_insert_path()
4187 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth); in ocfs2_insert_path()
4193 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_insert_path()
4216 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4224 if (left_path) in ocfs2_insert_path()
4226 path_leaf_bh(left_path)); in ocfs2_insert_path()
4233 if (left_path) { in ocfs2_insert_path()
4240 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_insert_path()
4242 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4259 struct ocfs2_path *left_path = NULL; in ocfs2_do_insert_extent() local
4316 right_path, &left_path); in ocfs2_do_insert_extent()
4335 right_path, &left_path); in ocfs2_do_insert_extent()
4342 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4357 ocfs2_free_path(left_path); in ocfs2_do_insert_extent()
4374 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4387 left_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4388 if (!left_path) { in ocfs2_figure_merge_contig_type()
4394 status = ocfs2_find_path(et->et_ci, left_path, in ocfs2_figure_merge_contig_type()
4399 new_el = path_leaf_el(left_path); in ocfs2_figure_merge_contig_type()
4403 bh = path_leaf_bh(left_path); in ocfs2_figure_merge_contig_type()
4483 ocfs2_free_path(left_path); in ocfs2_figure_merge_contig_type()
5174 struct ocfs2_path *left_path = NULL; in ocfs2_change_extent_flag() local
5178 left_path = ocfs2_new_path_from_et(et); in ocfs2_change_extent_flag()
5179 if (!left_path) { in ocfs2_change_extent_flag()
5185 ret = ocfs2_find_path(et->et_ci, left_path, cpos); in ocfs2_change_extent_flag()
5190 el = path_leaf_el(left_path); in ocfs2_change_extent_flag()
5230 ret = ocfs2_split_extent(handle, et, left_path, in ocfs2_change_extent_flag()
5237 ocfs2_free_path(left_path); in ocfs2_change_extent_flag()
5365 struct ocfs2_path *left_path = NULL; in ocfs2_truncate_rec() local
5425 left_path = ocfs2_new_path_from_path(path); in ocfs2_truncate_rec()
5426 if (!left_path) { in ocfs2_truncate_rec()
5432 ret = ocfs2_find_path(et->et_ci, left_path, in ocfs2_truncate_rec()
5455 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path); in ocfs2_truncate_rec()
5500 if (left_path) { in ocfs2_truncate_rec()
5503 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_truncate_rec()
5504 ocfs2_complete_edge_insert(handle, left_path, path, in ocfs2_truncate_rec()
5515 ocfs2_free_path(left_path); in ocfs2_truncate_rec()