Lines Matching refs:right_path

2024 				       struct ocfs2_path *right_path,  in ocfs2_complete_edge_insert()  argument
2045 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2059 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2066 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2073 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2083 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2096 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2126 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2128 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2135 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2137 right_path, i); in ocfs2_rotate_subtree_right()
2151 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2152 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2183 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2352 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2362 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2369 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2418 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2449 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2453 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2454 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2457 orig_credits, right_path); in ocfs2_rotate_tree_right()
2464 right_path, start); in ocfs2_rotate_tree_right()
2471 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2493 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2495 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
2624 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2641 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2648 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2654 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2660 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2663 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2668 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2688 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2722 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2729 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2731 right_path, i); in ocfs2_rotate_subtree_left()
2767 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2770 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2794 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2914 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2937 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2938 if (!right_path) { in __ocfs2_rotate_tree_left()
2945 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2952 right_path); in __ocfs2_rotate_tree_left()
2956 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2957 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2978 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2987 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2988 right_path = NULL; in __ocfs2_rotate_tree_left()
3004 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3015 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3313 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3334 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3335 if (!right_path) { in ocfs2_get_right_path()
3341 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3347 *ret_right_path = right_path; in ocfs2_get_right_path()
3350 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3372 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3384 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3390 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3404 right_path); in ocfs2_merge_rec_right()
3408 right_path); in ocfs2_merge_rec_right()
3415 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3417 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3425 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3427 right_path, i); in ocfs2_merge_rec_right()
3464 if (right_path) { in ocfs2_merge_rec_right()
3465 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3466 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3470 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3475 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3485 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3488 right_path, &left_cpos); in ocfs2_get_left_path()
3497 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3527 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3538 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3539 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3549 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3566 right_path); in ocfs2_merge_rec_left()
3577 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3579 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3587 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3589 right_path, i); in ocfs2_merge_rec_left()
3608 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3609 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3646 right_path, in ocfs2_merge_rec_left()
3656 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3660 right_path, subtree_index); in ocfs2_merge_rec_left()
3967 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
3980 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
3987 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
3994 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4011 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4032 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4038 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4051 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4060 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4138 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4143 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4169 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4181 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4193 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4206 right_path); in ocfs2_insert_path()
4207 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4223 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4241 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4242 if (!right_path) { in ocfs2_do_insert_extent()
4260 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4281 right_path, &left_path); in ocfs2_do_insert_extent()
4300 right_path, &left_path); in ocfs2_do_insert_extent()
4307 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4323 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4339 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4408 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4409 if (!right_path) { in ocfs2_figure_merge_contig_type()
4415 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4419 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4423 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4448 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()