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