Lines Matching defs:right_path
2048 * We've changed a leaf block (in right_path) and need to reflect that
2062 struct ocfs2_path *right_path,
2083 right_el = path_leaf_el(right_path);
2097 el = right_path->p_node[i].el;
2103 ocfs2_journal_dirty(handle, right_path->p_node[i].bh);
2110 right_el = right_path->p_node[i].el;
2120 right_el = right_path->p_node[subtree_index + 1].el;
2133 struct ocfs2_path *right_path,
2163 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
2165 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
2172 for(i = subtree_index + 1; i < path_num_items(right_path); i++) {
2174 right_path, i);
2188 right_leaf_bh = path_leaf_bh(right_path);
2189 right_el = path_leaf_el(right_path);
2220 ocfs2_complete_edge_insert(handle, left_path, right_path,
2378 * - The 'right_path' array will contain a path to the leaf block
2389 struct ocfs2_path *right_path,
2399 left_path = ocfs2_new_path_from_path(right_path);
2406 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2455 path_leaf_bh(right_path),
2486 start = ocfs2_find_subtree_root(et, left_path, right_path);
2490 right_path->p_node[start].bh->b_blocknr,
2491 right_path->p_tree_depth);
2494 orig_credits, right_path);
2501 right_path, start);
2508 ocfs2_leftmost_rec_contains(path_leaf_el(right_path),
2530 ocfs2_mv_path(right_path, left_path);
2532 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2634 struct ocfs2_path *right_path,
2643 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data;
2660 ocfs2_unlink_path(handle, et, dealloc, right_path,
2667 struct ocfs2_path *right_path,
2673 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path);
2679 right_leaf_el = path_leaf_el(right_path);
2682 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
2687 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data;
2707 path_leaf_bh(right_path),
2741 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
2748 for(i = subtree_index + 1; i < path_num_items(right_path); i++) {
2750 right_path, i);
2786 ocfs2_journal_dirty(handle, path_leaf_bh(right_path));
2789 ocfs2_unlink_subtree(handle, et, left_path, right_path,
2812 ocfs2_complete_edge_insert(handle, left_path, right_path,
2932 struct ocfs2_path *right_path = NULL;
2955 right_path = ocfs2_new_path_from_path(path);
2956 if (!right_path) {
2963 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos);
2970 right_path);
2974 right_path->p_node[subtree_root].bh->b_blocknr,
2975 right_path->p_tree_depth);
2996 right_path, subtree_root,
3005 *empty_extent_path = right_path;
3006 right_path = NULL;
3022 ocfs2_mv_path(left_path, right_path);
3033 ocfs2_free_path(right_path);
3317 struct ocfs2_path *right_path = NULL;
3338 right_path = ocfs2_new_path_from_path(left_path);
3339 if (!right_path) {
3345 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos);
3351 *ret_right_path = right_path;
3354 ocfs2_free_path(right_path);
3376 struct ocfs2_path *right_path = NULL;
3388 ret = ocfs2_get_right_path(et, left_path, &right_path);
3394 right_el = path_leaf_el(right_path);
3408 right_path);
3412 right_path);
3419 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
3421 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3429 i < path_num_items(right_path); i++) {
3431 right_path, i);
3468 if (right_path) {
3469 ocfs2_journal_dirty(handle, path_leaf_bh(right_path));
3470 ocfs2_complete_edge_insert(handle, left_path, right_path,
3474 ocfs2_free_path(right_path);
3479 struct ocfs2_path *right_path,
3489 BUG_ON(right_path->p_tree_depth == 0);
3492 right_path, &left_cpos);
3501 left_path = ocfs2_new_path_from_path(right_path);
3528 * remove the rightmost leaf extent block in the right_path and change
3531 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path,
3542 struct ocfs2_extent_list *el = path_leaf_el(right_path);
3543 struct buffer_head *bh = path_leaf_bh(right_path);
3553 ret = ocfs2_get_left_path(et, right_path, &left_path);
3570 right_path);
3581 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
3583 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3591 i < path_num_items(right_path); i++) {
3593 right_path, i);
3612 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3613 path_num_items(right_path) - 1);
3649 right_path);
3656 right_path,
3666 ocfs2_mv_path(right_path, left_path);
3669 right_path, subtree_index);
4011 struct ocfs2_path *right_path,
4024 BUG_ON(right_path->p_tree_depth == 0);
4031 el = path_leaf_el(right_path);
4038 right_path, &left_cpos);
4055 left_path = ocfs2_new_path_from_path(right_path);
4076 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path);
4082 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec);
4095 struct ocfs2_path *right_path,
4104 right_el = path_leaf_el(right_path);
4175 * right_path is the path we want to do the actual insert
4182 struct ocfs2_path *right_path,
4187 struct buffer_head *leaf_bh = path_leaf_bh(right_path);
4213 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path);
4225 ocfs2_split_record(et, left_path, right_path,
4237 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path),
4250 right_path);
4251 ocfs2_complete_edge_insert(handle, left_path, right_path,
4267 struct ocfs2_path *right_path = NULL;
4285 right_path = ocfs2_new_path_from_et(et);
4286 if (!right_path) {
4304 ret = ocfs2_find_path(et->et_ci, right_path, cpos);
4325 right_path, &left_path);
4344 right_path, &left_path);
4351 ret = ocfs2_insert_path(handle, et, left_path, right_path,
4367 ocfs2_free_path(right_path);
4383 struct ocfs2_path *left_path = NULL, *right_path = NULL;
4451 right_path = ocfs2_new_path_from_path(path);
4452 if (!right_path) {
4458 status = ocfs2_find_path(et->et_ci, right_path, right_cpos);
4462 new_el = path_leaf_el(right_path);
4466 bh = path_leaf_bh(right_path);
4490 ocfs2_free_path(right_path);