Lines Matching refs:left_path

2043 				       struct ocfs2_path *left_path,
2064 left_el = path_leaf_el(left_path);
2066 for(i = left_path->p_tree_depth - 1; i > subtree_index; i--) {
2075 el = left_path->p_node[i].el;
2084 ocfs2_journal_dirty(handle, left_path->p_node[i].bh);
2091 left_el = left_path->p_node[i].el;
2100 el = left_path->p_node[subtree_index].el;
2101 left_el = left_path->p_node[subtree_index + 1].el;
2105 left_path->p_node[subtree_index + 1].bh->b_blocknr);
2107 root_bh = left_path->p_node[subtree_index].bh;
2114 struct ocfs2_path *left_path,
2125 left_leaf_bh = path_leaf_bh(left_path);
2126 left_el = path_leaf_el(left_path);
2144 root_bh = left_path->p_node[subtree_index].bh;
2163 left_path, i);
2202 ocfs2_complete_edge_insert(handle, left_path, right_path,
2312 static int ocfs2_rotate_requires_path_adjustment(struct ocfs2_path *left_path,
2319 left_el = path_leaf_el(left_path);
2376 struct ocfs2_path *left_path = NULL;
2381 left_path = ocfs2_new_path_from_path(right_path);
2382 if (!left_path) {
2430 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
2436 mlog_bug_on_msg(path_leaf_bh(left_path) ==
2444 path_leaf_bh(left_path)->b_blocknr);
2447 ocfs2_rotate_requires_path_adjustment(left_path,
2464 *ret_left_path = left_path;
2468 start = ocfs2_find_subtree_root(et, left_path, right_path);
2482 ret = ocfs2_rotate_subtree_right(handle, et, left_path,
2499 * exit here, passing left_path back -
2503 *ret_left_path = left_path;
2512 ocfs2_mv_path(right_path, left_path);
2522 ocfs2_free_path(left_path);
2615 struct ocfs2_path *left_path,
2621 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh;
2622 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el;
2636 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
2640 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
2648 struct ocfs2_path *left_path,
2662 left_leaf_el = path_leaf_el(left_path);
2663 root_bh = left_path->p_node[subtree_index].bh;
2739 left_path, i);
2767 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
2771 ocfs2_unlink_subtree(handle, et, left_path, right_path,
2773 ret = ocfs2_update_edge_lengths(handle, et, left_path);
2779 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
2794 ocfs2_complete_edge_insert(handle, left_path, right_path,
2913 struct ocfs2_path *left_path = NULL;
2928 left_path = ocfs2_new_path_from_path(path);
2929 if (!left_path) {
2935 ocfs2_cp_path(left_path, path);
2951 subtree_root = ocfs2_find_subtree_root(et, left_path,
2960 orig_credits, left_path);
2971 left_path, 0);
2977 ret = ocfs2_rotate_subtree_left(handle, et, left_path,
3004 ocfs2_mv_path(left_path, right_path);
3006 ret = ocfs2_find_cpos_for_right_leaf(sb, left_path,
3016 ocfs2_free_path(left_path);
3028 struct ocfs2_path *left_path = NULL;
3054 left_path = ocfs2_new_path_from_path(path);
3055 if (!left_path) {
3061 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
3067 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
3073 subtree_index = ocfs2_find_subtree_root(et, left_path, path);
3075 ocfs2_unlink_subtree(handle, et, left_path, path,
3077 ret = ocfs2_update_edge_lengths(handle, et, left_path);
3083 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
3106 ocfs2_free_path(left_path);
3294 struct ocfs2_path *left_path,
3305 BUG_ON(left_path->p_tree_depth == 0);
3307 left_el = path_leaf_el(left_path);
3311 left_path, &right_cpos);
3320 right_path = ocfs2_new_path_from_path(left_path);
3347 static int ocfs2_merge_rec_right(struct ocfs2_path *left_path,
3360 struct ocfs2_extent_list *el = path_leaf_el(left_path);
3361 struct buffer_head *bh = path_leaf_bh(left_path);
3370 ret = ocfs2_get_right_path(et, left_path, &right_path);
3389 subtree_index = ocfs2_find_subtree_root(et, left_path,
3400 root_bh = left_path->p_node[subtree_index].bh;
3420 left_path, i);
3432 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path,
3433 path_num_items(left_path) - 1);
3452 ocfs2_complete_edge_insert(handle, left_path, right_path,
3466 struct ocfs2_path *left_path = NULL;
3483 left_path = ocfs2_new_path_from_path(right_path);
3484 if (!left_path) {
3490 ret = ocfs2_find_path(et->et_ci, left_path, left_cpos);
3496 *ret_left_path = left_path;
3499 ocfs2_free_path(left_path);
3527 struct ocfs2_path *left_path = NULL;
3535 ret = ocfs2_get_left_path(et, right_path, &left_path);
3541 left_el = path_leaf_el(left_path);
3551 subtree_index = ocfs2_find_subtree_root(et, left_path,
3556 left_path);
3562 root_bh = left_path->p_node[subtree_index].bh;
3582 left_path, i);
3618 if (left_path) {
3619 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
3648 ocfs2_mv_path(right_path, left_path);
3649 left_path = NULL;
3651 ocfs2_complete_edge_insert(handle, left_path,
3655 ocfs2_free_path(left_path);
3999 struct ocfs2_path *left_path = NULL;
4038 left_path = ocfs2_new_path_from_path(right_path);
4039 if (!left_path) {
4045 ret = ocfs2_find_path(et->et_ci, left_path,
4053 * ocfs2_insert_path() will pass the left_path to the
4067 *ret_left_path = left_path;
4071 ocfs2_free_path(left_path);
4077 struct ocfs2_path *left_path,
4088 if (left_path)
4089 left_el = path_leaf_el(left_path);
4095 if (index == 0 && left_path) {
4136 BUG_ON(!left_path);
4159 * in. left_path should only be passed in if we need to update that
4164 struct ocfs2_path *left_path,
4172 if (left_path) {
4174 * There's a chance that left_path got passed back to
4179 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth);
4185 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
4208 ocfs2_split_record(et, left_path, right_path,
4216 if (left_path)
4218 path_leaf_bh(left_path));
4225 if (left_path) {
4232 subtree_index = ocfs2_find_subtree_root(et, left_path,
4234 ocfs2_complete_edge_insert(handle, left_path, right_path,
4251 struct ocfs2_path *left_path = NULL;
4300 * left_path to account for an edge insert.
4308 right_path, &left_path);
4327 right_path, &left_path);
4334 ret = ocfs2_insert_path(handle, et, left_path, right_path,
4349 ocfs2_free_path(left_path);
4366 struct ocfs2_path *left_path = NULL, *right_path = NULL;
4379 left_path = ocfs2_new_path_from_path(path);
4380 if (!left_path) {
4386 status = ocfs2_find_path(et->et_ci, left_path,
4391 new_el = path_leaf_el(left_path);
4395 bh = path_leaf_bh(left_path);
4475 ocfs2_free_path(left_path);
5166 struct ocfs2_path *left_path = NULL;
5170 left_path = ocfs2_new_path_from_et(et);
5171 if (!left_path) {
5177 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
5182 el = path_leaf_el(left_path);
5222 ret = ocfs2_split_extent(handle, et, left_path,
5229 ocfs2_free_path(left_path);
5357 struct ocfs2_path *left_path = NULL;
5417 left_path = ocfs2_new_path_from_path(path);
5418 if (!left_path) {
5424 ret = ocfs2_find_path(et->et_ci, left_path,
5447 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
5492 if (left_path) {
5495 subtree_index = ocfs2_find_subtree_root(et, left_path, path);
5496 ocfs2_complete_edge_insert(handle, left_path, path,
5507 ocfs2_free_path(left_path);