Lines Matching refs:right_path

2032 				       struct ocfs2_path *right_path,  in ocfs2_complete_edge_insert()  argument
2053 right_el = path_leaf_el(right_path); in ocfs2_complete_edge_insert()
2067 el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2074 ocfs2_journal_dirty(handle, right_path->p_node[i].bh); in ocfs2_complete_edge_insert()
2081 right_el = right_path->p_node[i].el; in ocfs2_complete_edge_insert()
2091 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2104 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_right() argument
2135 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2137 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_right()
2144 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2146 right_path, i); in ocfs2_rotate_subtree_right()
2160 right_leaf_bh = path_leaf_bh(right_path); in ocfs2_rotate_subtree_right()
2161 right_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_right()
2192 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_rotate_subtree_right()
2362 struct ocfs2_path *right_path, in ocfs2_rotate_tree_right() argument
2372 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_rotate_tree_right()
2379 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2428 path_leaf_bh(right_path), in ocfs2_rotate_tree_right()
2459 start = ocfs2_find_subtree_root(et, left_path, right_path); in ocfs2_rotate_tree_right()
2463 right_path->p_node[start].bh->b_blocknr, in ocfs2_rotate_tree_right()
2464 right_path->p_tree_depth); in ocfs2_rotate_tree_right()
2467 orig_credits, right_path); in ocfs2_rotate_tree_right()
2474 right_path, start); in ocfs2_rotate_tree_right()
2481 ocfs2_leftmost_rec_contains(path_leaf_el(right_path), in ocfs2_rotate_tree_right()
2503 ocfs2_mv_path(right_path, left_path); in ocfs2_rotate_tree_right()
2505 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos); in ocfs2_rotate_tree_right()
2622 struct ocfs2_path *right_path, in ocfs2_unlink_subtree() argument
2634 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2651 ocfs2_unlink_path(handle, et, dealloc, right_path, in ocfs2_unlink_subtree()
2658 struct ocfs2_path *right_path, in ocfs2_rotate_subtree_left() argument
2664 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path); in ocfs2_rotate_subtree_left()
2670 right_leaf_el = path_leaf_el(right_path); in ocfs2_rotate_subtree_left()
2673 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2678 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data; in ocfs2_rotate_subtree_left()
2698 path_leaf_bh(right_path), in ocfs2_rotate_subtree_left()
2732 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_rotate_subtree_left()
2739 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2741 right_path, i); in ocfs2_rotate_subtree_left()
2777 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_rotate_subtree_left()
2780 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()
2925 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()
3299 struct ocfs2_path *right_path = NULL; in ocfs2_get_right_path() local
3320 right_path = ocfs2_new_path_from_path(left_path); in ocfs2_get_right_path()
3321 if (!right_path) { in ocfs2_get_right_path()
3327 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_get_right_path()
3333 *ret_right_path = right_path; in ocfs2_get_right_path()
3336 ocfs2_free_path(right_path); in ocfs2_get_right_path()
3358 struct ocfs2_path *right_path = NULL; in ocfs2_merge_rec_right() local
3370 ret = ocfs2_get_right_path(et, left_path, &right_path); in ocfs2_merge_rec_right()
3376 right_el = path_leaf_el(right_path); in ocfs2_merge_rec_right()
3390 right_path); in ocfs2_merge_rec_right()
3394 right_path); in ocfs2_merge_rec_right()
3401 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3403 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_right()
3411 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_right()
3413 right_path, i); in ocfs2_merge_rec_right()
3450 if (right_path) { in ocfs2_merge_rec_right()
3451 ocfs2_journal_dirty(handle, path_leaf_bh(right_path)); in ocfs2_merge_rec_right()
3452 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_merge_rec_right()
3456 ocfs2_free_path(right_path); in ocfs2_merge_rec_right()
3461 struct ocfs2_path *right_path, in ocfs2_get_left_path() argument
3471 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_get_left_path()
3474 right_path, &left_cpos); in ocfs2_get_left_path()
3483 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_get_left_path()
3513 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path, in ocfs2_merge_rec_left() argument
3524 struct ocfs2_extent_list *el = path_leaf_el(right_path); in ocfs2_merge_rec_left()
3525 struct buffer_head *bh = path_leaf_bh(right_path); in ocfs2_merge_rec_left()
3535 ret = ocfs2_get_left_path(et, right_path, &left_path); in ocfs2_merge_rec_left()
3552 right_path); in ocfs2_merge_rec_left()
3563 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3565 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3573 i < path_num_items(right_path); i++) { in ocfs2_merge_rec_left()
3575 right_path, i); in ocfs2_merge_rec_left()
3594 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path, in ocfs2_merge_rec_left()
3595 path_num_items(right_path) - 1); in ocfs2_merge_rec_left()
3632 right_path, in ocfs2_merge_rec_left()
3642 ocfs2_mv_path(right_path, left_path); in ocfs2_merge_rec_left()
3646 right_path, subtree_index); in ocfs2_merge_rec_left()
3953 struct ocfs2_path *right_path, in ocfs2_append_rec_to_path() argument
3966 BUG_ON(right_path->p_tree_depth == 0); in ocfs2_append_rec_to_path()
3973 el = path_leaf_el(right_path); in ocfs2_append_rec_to_path()
3980 right_path, &left_cpos); in ocfs2_append_rec_to_path()
3997 left_path = ocfs2_new_path_from_path(right_path); in ocfs2_append_rec_to_path()
4018 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_append_rec_to_path()
4024 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec); in ocfs2_append_rec_to_path()
4037 struct ocfs2_path *right_path, in ocfs2_split_record() argument
4046 right_el = path_leaf_el(right_path); in ocfs2_split_record()
4124 struct ocfs2_path *right_path, in ocfs2_insert_path() argument
4129 struct buffer_head *leaf_bh = path_leaf_bh(right_path); in ocfs2_insert_path()
4155 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path); in ocfs2_insert_path()
4167 ocfs2_split_record(et, left_path, right_path, in ocfs2_insert_path()
4179 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path), in ocfs2_insert_path()
4192 right_path); in ocfs2_insert_path()
4193 ocfs2_complete_edge_insert(handle, left_path, right_path, in ocfs2_insert_path()
4209 struct ocfs2_path *right_path = NULL; in ocfs2_do_insert_extent() local
4227 right_path = ocfs2_new_path_from_et(et); in ocfs2_do_insert_extent()
4228 if (!right_path) { in ocfs2_do_insert_extent()
4246 ret = ocfs2_find_path(et->et_ci, right_path, cpos); in ocfs2_do_insert_extent()
4267 right_path, &left_path); in ocfs2_do_insert_extent()
4286 right_path, &left_path); in ocfs2_do_insert_extent()
4293 ret = ocfs2_insert_path(handle, et, left_path, right_path, in ocfs2_do_insert_extent()
4309 ocfs2_free_path(right_path); in ocfs2_do_insert_extent()
4325 struct ocfs2_path *left_path = NULL, *right_path = NULL; in ocfs2_figure_merge_contig_type() local
4394 right_path = ocfs2_new_path_from_path(path); in ocfs2_figure_merge_contig_type()
4395 if (!right_path) in ocfs2_figure_merge_contig_type()
4398 status = ocfs2_find_path(et->et_ci, right_path, right_cpos); in ocfs2_figure_merge_contig_type()
4402 new_el = path_leaf_el(right_path); in ocfs2_figure_merge_contig_type()
4406 bh = path_leaf_bh(right_path); in ocfs2_figure_merge_contig_type()
4432 ocfs2_free_path(right_path); in ocfs2_figure_merge_contig_type()