Lines Matching refs:right_path
2037 struct ocfs2_path *right_path, in ocfs2_complete_edge_insert() argument
2058 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2072 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2078 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2085 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2095 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2108 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2138 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2140 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2147 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2149 right_path, i); in ocfs2_rotate_subtree_right()
2163 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2164 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2195 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2364 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2374 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2381 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2430 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2461 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2465 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2466 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2469 orig_credits, right_path); in ocfs2_rotate_tree_right()
2476 right_path, start); in ocfs2_rotate_tree_right()
2483 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2505 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2507 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2609 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2618 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2635 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2642 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2648 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2654 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2657 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2662 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2682 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2716 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2723 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2725 right_path, i); in ocfs2_rotate_subtree_left()
2761 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2764 ocfs2_unlink_subtree(handle, et, left_path, right_path, in ocfs2_rotate_subtree_left()
2787 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_left()
2907 struct ocfs2_path *right_path = NULL; in __ocfs2_rotate_tree_left() local
2930 right_path = ocfs2_new_path_from_path(path); in __ocfs2_rotate_tree_left()
2931 if (!right_path) { in __ocfs2_rotate_tree_left()
2938 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in __ocfs2_rotate_tree_left()
2945 right_path); in __ocfs2_rotate_tree_left()
2949 right_path->p_node[subtree_root].bh->b_blocknr, in __ocfs2_rotate_tree_left()
2950 right_path->p_tree_depth); in __ocfs2_rotate_tree_left()
2971 right_path, subtree_root, in __ocfs2_rotate_tree_left()
2980 *empty_extent_path = right_path; in __ocfs2_rotate_tree_left()
2981 right_path = NULL; in __ocfs2_rotate_tree_left()
2997 ocfs2_mv_path(left_path, right_path); in __ocfs2_rotate_tree_left()
3008 ocfs2_free_path(right_path); in __ocfs2_rotate_tree_left()
3292 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3313 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3314 if (!right_path) { in ocfs2_get_right_path()
3320 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3326 *ret_right_path = right_path; in ocfs2_get_right_path()
3329 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3351 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3363 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3369 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3383 right_path); in ocfs2_merge_rec_right()
3387 right_path); in ocfs2_merge_rec_right()
3394 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3396 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3404 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3406 right_path, i); in ocfs2_merge_rec_right()
3443 if (right_path) { in ocfs2_merge_rec_right()
3444 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3445 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3449 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3454 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3464 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3467 right_path, &left_cpos); in ocfs2_get_left_path()
3476 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3506 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3517 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3518 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3528 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3545 right_path); in ocfs2_merge_rec_left()
3556 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3558 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3566 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3568 right_path, i); in ocfs2_merge_rec_left()
3587 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3588 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3624 right_path); in ocfs2_merge_rec_left()
3631 right_path, in ocfs2_merge_rec_left()
3641 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3645 right_path, subtree_index); in ocfs2_merge_rec_left()
3987 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
4000 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
4007 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
4014 right_path, &left_cpos); in ocfs2_append_rec_to_path()
4031 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4052 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4058 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4071 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4080 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4158 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4163 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4189 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4201 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4213 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4226 right_path); in ocfs2_insert_path()
4227 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4243 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4261 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4262 if (!right_path) { in ocfs2_do_insert_extent()
4280 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4301 right_path, &left_path); in ocfs2_do_insert_extent()
4320 right_path, &left_path); in ocfs2_do_insert_extent()
4327 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4343 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4359 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4427 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4428 if (!right_path) { in ocfs2_figure_merge_contig_type()
4434 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4438 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4442 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4466 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()