Lines Matching refs:right_path

2038  * We've changed a leaf block (in right_path) and need to reflect that
2052 struct ocfs2_path *right_path,
2073 right_el = path_leaf_el(right_path);
2087 el = right_path->p_node[i].el;
2093 ocfs2_journal_dirty(handle, right_path->p_node[i].bh);
2100 right_el = right_path->p_node[i].el;
2110 right_el = right_path->p_node[subtree_index + 1].el;
2123 struct ocfs2_path *right_path,
2153 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
2155 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
2162 for(i = subtree_index + 1; i < path_num_items(right_path); i++) {
2164 right_path, i);
2178 right_leaf_bh = path_leaf_bh(right_path);
2179 right_el = path_leaf_el(right_path);
2210 ocfs2_complete_edge_insert(handle, left_path, right_path,
2368 * - The 'right_path' array will contain a path to the leaf block
2379 struct ocfs2_path *right_path,
2389 left_path = ocfs2_new_path_from_path(right_path);
2396 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2445 path_leaf_bh(right_path),
2476 start = ocfs2_find_subtree_root(et, left_path, right_path);
2480 right_path->p_node[start].bh->b_blocknr,
2481 right_path->p_tree_depth);
2484 orig_credits, right_path);
2491 right_path, start);
2498 ocfs2_leftmost_rec_contains(path_leaf_el(right_path),
2520 ocfs2_mv_path(right_path, left_path);
2522 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2624 struct ocfs2_path *right_path,
2633 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data;
2650 ocfs2_unlink_path(handle, et, dealloc, right_path,
2657 struct ocfs2_path *right_path,
2663 struct buffer_head *root_bh, *et_root_bh = path_root_bh(right_path);
2669 right_leaf_el = path_leaf_el(right_path);
2672 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
2677 eb = (struct ocfs2_extent_block *)path_leaf_bh(right_path)->b_data;
2697 path_leaf_bh(right_path),
2731 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
2738 for(i = subtree_index + 1; i < path_num_items(right_path); i++) {
2740 right_path, i);
2776 ocfs2_journal_dirty(handle, path_leaf_bh(right_path));
2779 ocfs2_unlink_subtree(handle, et, left_path, right_path,
2802 ocfs2_complete_edge_insert(handle, left_path, right_path,
2922 struct ocfs2_path *right_path = NULL;
2945 right_path = ocfs2_new_path_from_path(path);
2946 if (!right_path) {
2953 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos);
2960 right_path);
2964 right_path->p_node[subtree_root].bh->b_blocknr,
2965 right_path->p_tree_depth);
2986 right_path, subtree_root,
2995 *empty_extent_path = right_path;
2996 right_path = NULL;
3012 ocfs2_mv_path(left_path, right_path);
3023 ocfs2_free_path(right_path);
3307 struct ocfs2_path *right_path = NULL;
3328 right_path = ocfs2_new_path_from_path(left_path);
3329 if (!right_path) {
3335 ret = ocfs2_find_path(et->et_ci, right_path, right_cpos);
3341 *ret_right_path = right_path;
3344 ocfs2_free_path(right_path);
3366 struct ocfs2_path *right_path = NULL;
3378 ret = ocfs2_get_right_path(et, left_path, &right_path);
3384 right_el = path_leaf_el(right_path);
3398 right_path);
3402 right_path);
3409 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
3411 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3419 i < path_num_items(right_path); i++) {
3421 right_path, i);
3458 if (right_path) {
3459 ocfs2_journal_dirty(handle, path_leaf_bh(right_path));
3460 ocfs2_complete_edge_insert(handle, left_path, right_path,
3464 ocfs2_free_path(right_path);
3469 struct ocfs2_path *right_path,
3479 BUG_ON(right_path->p_tree_depth == 0);
3482 right_path, &left_cpos);
3491 left_path = ocfs2_new_path_from_path(right_path);
3518 * remove the rightmost leaf extent block in the right_path and change
3521 static int ocfs2_merge_rec_left(struct ocfs2_path *right_path,
3532 struct ocfs2_extent_list *el = path_leaf_el(right_path);
3533 struct buffer_head *bh = path_leaf_bh(right_path);
3543 ret = ocfs2_get_left_path(et, right_path, &left_path);
3560 right_path);
3571 BUG_ON(root_bh != right_path->p_node[subtree_index].bh);
3573 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3581 i < path_num_items(right_path); i++) {
3583 right_path, i);
3602 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, right_path,
3603 path_num_items(right_path) - 1);
3639 right_path);
3646 right_path,
3656 ocfs2_mv_path(right_path, left_path);
3660 right_path, subtree_index);
4002 struct ocfs2_path *right_path,
4015 BUG_ON(right_path->p_tree_depth == 0);
4022 el = path_leaf_el(right_path);
4029 right_path, &left_cpos);
4046 left_path = ocfs2_new_path_from_path(right_path);
4067 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path);
4073 ocfs2_adjust_rightmost_records(handle, et, right_path, insert_rec);
4086 struct ocfs2_path *right_path,
4095 right_el = path_leaf_el(right_path);
4166 * right_path is the path we want to do the actual insert
4173 struct ocfs2_path *right_path,
4178 struct buffer_head *leaf_bh = path_leaf_bh(right_path);
4204 ret = ocfs2_journal_access_path(et->et_ci, handle, right_path);
4216 ocfs2_split_record(et, left_path, right_path,
4228 ocfs2_insert_at_leaf(et, insert_rec, path_leaf_el(right_path),
4241 right_path);
4242 ocfs2_complete_edge_insert(handle, left_path, right_path,
4258 struct ocfs2_path *right_path = NULL;
4276 right_path = ocfs2_new_path_from_et(et);
4277 if (!right_path) {
4295 ret = ocfs2_find_path(et->et_ci, right_path, cpos);
4316 right_path, &left_path);
4335 right_path, &left_path);
4342 ret = ocfs2_insert_path(handle, et, left_path, right_path,
4358 ocfs2_free_path(right_path);
4374 struct ocfs2_path *left_path = NULL, *right_path = NULL;
4442 right_path = ocfs2_new_path_from_path(path);
4443 if (!right_path) {
4449 status = ocfs2_find_path(et->et_ci, right_path, right_cpos);
4453 new_el = path_leaf_el(right_path);
4457 bh = path_leaf_bh(right_path);
4481 ocfs2_free_path(right_path);