Lines Matching defs:right_path

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