Lines Matching refs:right_path
2039 struct ocfs2_path *right_path, in ocfs2_complete_edge_insert() argument
2060 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2074 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2080 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2087 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2097 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2110 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2140 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2142 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2149 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2151 right_path, i); in ocfs2_rotate_subtree_right()
2165 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2166 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2197 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2366 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2376 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2383 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2432 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2463 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2467 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2468 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2471 orig_credits, right_path); in ocfs2_rotate_tree_right()
2478 right_path, start); in ocfs2_rotate_tree_right()
2485 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2507 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2509 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2611 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2620 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2637 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2644 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2650 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2656 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2659 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2664 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2684 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2718 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2725 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2727 right_path, i); in ocfs2_rotate_subtree_left()
2763 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2766 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2789 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2909 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2932 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2933 if (!right_path) { in __ocfs2_rotate_tree_left()
2940 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2947 right_path); in __ocfs2_rotate_tree_left()
2951 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2952 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2973 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2982 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2983 right_path = NULL; in __ocfs2_rotate_tree_left()
2999 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3010 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3294 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3315 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3316 if (!right_path) { in ocfs2_get_right_path()
3322 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3328 *ret_right_path = right_path; in ocfs2_get_right_path()
3331 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3353 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3365 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3371 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3385 right_path); in ocfs2_merge_rec_right()
3389 right_path); in ocfs2_merge_rec_right()
3396 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3398 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3406 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3408 right_path, i); in ocfs2_merge_rec_right()
3445 if (right_path) { in ocfs2_merge_rec_right()
3446 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3447 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3451 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3456 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3466 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3469 right_path, &left_cpos); in ocfs2_get_left_path()
3478 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3508 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3519 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3520 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3530 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3547 right_path); in ocfs2_merge_rec_left()
3558 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3560 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3568 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3570 right_path, i); in ocfs2_merge_rec_left()
3589 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3590 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3626 right_path); in ocfs2_merge_rec_left()
3633 right_path, in ocfs2_merge_rec_left()
3643 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3647 right_path, subtree_index); in ocfs2_merge_rec_left()
3989 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
4002 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4009 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4016 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4033 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4054 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4060 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4073 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4082 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4160 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4165 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4191 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4203 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4215 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4228 right_path); in ocfs2_insert_path()
4229 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4245 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4263 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4264 if (!right_path) { in ocfs2_do_insert_extent()
4282 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4303 right_path, &left_path); in ocfs2_do_insert_extent()
4322 right_path, &left_path); in ocfs2_do_insert_extent()
4329 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4345 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4361 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4429 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4430 if (!right_path) { in ocfs2_figure_merge_contig_type()
4436 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4440 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4444 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4468 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()