Lines Matching refs:right_path
2040 struct ocfs2_path *right_path, in ocfs2_complete_edge_insert() argument
2061 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2075 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2081 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2088 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2098 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2111 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2141 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2143 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2150 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2152 right_path, i); in ocfs2_rotate_subtree_right()
2166 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2167 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2198 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2367 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2377 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2384 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2433 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2464 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2468 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2469 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2472 orig_credits, right_path); in ocfs2_rotate_tree_right()
2479 right_path, start); in ocfs2_rotate_tree_right()
2486 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2508 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2510 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2612 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2621 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2638 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2645 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2651 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2657 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2660 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2665 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2685 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2719 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2726 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2728 right_path, i); in ocfs2_rotate_subtree_left()
2764 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2767 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2790 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2910 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2933 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2934 if (!right_path) { in __ocfs2_rotate_tree_left()
2941 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2948 right_path); in __ocfs2_rotate_tree_left()
2952 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2953 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2974 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2983 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2984 right_path = NULL; in __ocfs2_rotate_tree_left()
3000 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3011 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3295 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3316 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3317 if (!right_path) { in ocfs2_get_right_path()
3323 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3329 *ret_right_path = right_path; in ocfs2_get_right_path()
3332 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3354 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3366 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3372 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3386 right_path); in ocfs2_merge_rec_right()
3390 right_path); in ocfs2_merge_rec_right()
3397 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3399 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3407 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3409 right_path, i); in ocfs2_merge_rec_right()
3446 if (right_path) { in ocfs2_merge_rec_right()
3447 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3448 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3452 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3457 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3467 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3470 right_path, &left_cpos); in ocfs2_get_left_path()
3479 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3509 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3520 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3521 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3531 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3548 right_path); in ocfs2_merge_rec_left()
3559 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3561 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3569 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3571 right_path, i); in ocfs2_merge_rec_left()
3590 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3591 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3627 right_path); in ocfs2_merge_rec_left()
3634 right_path, in ocfs2_merge_rec_left()
3644 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3648 right_path, subtree_index); in ocfs2_merge_rec_left()
3990 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
4003 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4010 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4017 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4034 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4055 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4061 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4074 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4083 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4161 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4166 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4192 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4204 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4216 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4229 right_path); in ocfs2_insert_path()
4230 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4246 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4264 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4265 if (!right_path) { in ocfs2_do_insert_extent()
4283 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4304 right_path, &left_path); in ocfs2_do_insert_extent()
4323 right_path, &left_path); in ocfs2_do_insert_extent()
4330 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4346 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4362 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4430 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4431 if (!right_path) { in ocfs2_figure_merge_contig_type()
4437 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4441 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4445 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4469 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()