Lines Matching refs:right_path
2054 struct ocfs2_path *right_path, in ocfs2_complete_edge_insert() argument
2075 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2089 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2095 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2102 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2112 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2125 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2155 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2157 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2164 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2166 right_path, i); in ocfs2_rotate_subtree_right()
2180 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2181 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2212 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2381 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2391 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2398 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2447 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2478 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2482 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2483 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2486 orig_credits, right_path); in ocfs2_rotate_tree_right()
2493 right_path, start); in ocfs2_rotate_tree_right()
2500 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2522 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2524 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2626 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2635 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2652 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2659 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2665 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2671 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2674 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2679 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2699 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2733 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2740 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2742 right_path, i); in ocfs2_rotate_subtree_left()
2778 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2781 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2804 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2924 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2947 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2948 if (!right_path) { in __ocfs2_rotate_tree_left()
2955 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2962 right_path); in __ocfs2_rotate_tree_left()
2966 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2967 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2988 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2997 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2998 right_path = NULL; in __ocfs2_rotate_tree_left()
3014 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3025 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3309 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3330 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3331 if (!right_path) { in ocfs2_get_right_path()
3337 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3343 *ret_right_path = right_path; in ocfs2_get_right_path()
3346 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3368 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3380 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3386 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3400 right_path); in ocfs2_merge_rec_right()
3404 right_path); in ocfs2_merge_rec_right()
3411 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3413 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3421 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3423 right_path, i); in ocfs2_merge_rec_right()
3460 if (right_path) { in ocfs2_merge_rec_right()
3461 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3462 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3466 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3471 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3481 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3484 right_path, &left_cpos); in ocfs2_get_left_path()
3493 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3523 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3534 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3535 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3545 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3562 right_path); in ocfs2_merge_rec_left()
3573 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3575 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3583 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3585 right_path, i); in ocfs2_merge_rec_left()
3604 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3605 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3641 right_path); in ocfs2_merge_rec_left()
3648 right_path, in ocfs2_merge_rec_left()
3658 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3662 right_path, subtree_index); in ocfs2_merge_rec_left()
4004 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
4017 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4024 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4031 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4048 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4069 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4075 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4088 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4097 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4175 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4180 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4206 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4218 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4230 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4243 right_path); in ocfs2_insert_path()
4244 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4260 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4278 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4279 if (!right_path) { in ocfs2_do_insert_extent()
4297 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4318 right_path, &left_path); in ocfs2_do_insert_extent()
4337 right_path, &left_path); in ocfs2_do_insert_extent()
4344 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4360 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4376 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4444 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4445 if (!right_path) { in ocfs2_figure_merge_contig_type()
4451 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4455 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4459 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4483 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()