Lines Matching refs:right_path
2053 struct ocfs2_path *right_path, in ocfs2_complete_edge_insert() argument
2074 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2088 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2094 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2101 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2111 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2124 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2154 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2156 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2163 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2165 right_path, i); in ocfs2_rotate_subtree_right()
2179 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2180 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2211 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2380 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2390 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2397 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2446 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2477 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2481 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2482 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2485 orig_credits, right_path); in ocfs2_rotate_tree_right()
2492 right_path, start); in ocfs2_rotate_tree_right()
2499 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2521 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2523 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2625 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2634 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2651 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2658 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2664 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2670 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2673 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2678 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2698 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2732 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2739 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2741 right_path, i); in ocfs2_rotate_subtree_left()
2777 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2780 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2803 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2923 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2946 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2947 if (!right_path) { in __ocfs2_rotate_tree_left()
2954 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2961 right_path); in __ocfs2_rotate_tree_left()
2965 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2966 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2987 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2996 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2997 right_path = NULL; in __ocfs2_rotate_tree_left()
3013 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3024 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3308 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3329 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3330 if (!right_path) { in ocfs2_get_right_path()
3336 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3342 *ret_right_path = right_path; in ocfs2_get_right_path()
3345 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3367 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3379 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3385 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3399 right_path); in ocfs2_merge_rec_right()
3403 right_path); in ocfs2_merge_rec_right()
3410 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3412 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3420 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3422 right_path, i); in ocfs2_merge_rec_right()
3459 if (right_path) { in ocfs2_merge_rec_right()
3460 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3461 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3465 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3470 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3480 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3483 right_path, &left_cpos); in ocfs2_get_left_path()
3492 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3522 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3533 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3534 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3544 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3561 right_path); in ocfs2_merge_rec_left()
3572 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3574 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3582 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3584 right_path, i); in ocfs2_merge_rec_left()
3603 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3604 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3640 right_path); in ocfs2_merge_rec_left()
3647 right_path, in ocfs2_merge_rec_left()
3657 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3660 right_path, subtree_index); in ocfs2_merge_rec_left()
4002 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
4015 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4022 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4029 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4046 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4067 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4073 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4086 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4095 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4173 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4178 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4204 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4216 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4228 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4241 right_path); in ocfs2_insert_path()
4242 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4258 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4276 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4277 if (!right_path) { in ocfs2_do_insert_extent()
4295 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
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()
4358 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4374 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4442 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4443 if (!right_path) { in ocfs2_figure_merge_contig_type()
4449 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4453 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4457 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4481 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()