Lines Matching refs:left_path

2036 				       struct ocfs2_path *left_path,
2057 left_el = path_leaf_el(left_path);
2059 for(i = left_path->p_tree_depth - 1; i > subtree_index; i--) {
2068 el = left_path->p_node[i].el;
2077 ocfs2_journal_dirty(handle, left_path->p_node[i].bh);
2084 left_el = left_path->p_node[i].el;
2093 el = left_path->p_node[subtree_index].el;
2094 left_el = left_path->p_node[subtree_index + 1].el;
2098 left_path->p_node[subtree_index + 1].bh->b_blocknr);
2100 root_bh = left_path->p_node[subtree_index].bh;
2107 struct ocfs2_path *left_path,
2118 left_leaf_bh = path_leaf_bh(left_path);
2119 left_el = path_leaf_el(left_path);
2137 root_bh = left_path->p_node[subtree_index].bh;
2156 left_path, i);
2195 ocfs2_complete_edge_insert(handle, left_path, right_path,
2305 static int ocfs2_rotate_requires_path_adjustment(struct ocfs2_path *left_path,
2312 left_el = path_leaf_el(left_path);
2369 struct ocfs2_path *left_path = NULL;
2374 left_path = ocfs2_new_path_from_path(right_path);
2375 if (!left_path) {
2423 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
2429 mlog_bug_on_msg(path_leaf_bh(left_path) ==
2437 path_leaf_bh(left_path)->b_blocknr);
2440 ocfs2_rotate_requires_path_adjustment(left_path,
2457 *ret_left_path = left_path;
2461 start = ocfs2_find_subtree_root(et, left_path, right_path);
2475 ret = ocfs2_rotate_subtree_right(handle, et, left_path,
2492 * exit here, passing left_path back -
2496 *ret_left_path = left_path;
2505 ocfs2_mv_path(right_path, left_path);
2515 ocfs2_free_path(left_path);
2608 struct ocfs2_path *left_path,
2614 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh;
2615 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el;
2629 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
2633 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
2641 struct ocfs2_path *left_path,
2655 left_leaf_el = path_leaf_el(left_path);
2656 root_bh = left_path->p_node[subtree_index].bh;
2732 left_path, i);
2760 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
2764 ocfs2_unlink_subtree(handle, et, left_path, right_path,
2766 ret = ocfs2_update_edge_lengths(handle, et, left_path);
2772 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
2787 ocfs2_complete_edge_insert(handle, left_path, right_path,
2906 struct ocfs2_path *left_path = NULL;
2921 left_path = ocfs2_new_path_from_path(path);
2922 if (!left_path) {
2928 ocfs2_cp_path(left_path, path);
2944 subtree_root = ocfs2_find_subtree_root(et, left_path,
2953 orig_credits, left_path);
2964 left_path, 0);
2970 ret = ocfs2_rotate_subtree_left(handle, et, left_path,
2997 ocfs2_mv_path(left_path, right_path);
2999 ret = ocfs2_find_cpos_for_right_leaf(sb, left_path,
3009 ocfs2_free_path(left_path);
3021 struct ocfs2_path *left_path = NULL;
3047 left_path = ocfs2_new_path_from_path(path);
3048 if (!left_path) {
3054 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
3060 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
3066 subtree_index = ocfs2_find_subtree_root(et, left_path, path);
3068 ocfs2_unlink_subtree(handle, et, left_path, path,
3070 ret = ocfs2_update_edge_lengths(handle, et, left_path);
3076 eb = (struct ocfs2_extent_block *)path_leaf_bh(left_path)->b_data;
3099 ocfs2_free_path(left_path);
3287 struct ocfs2_path *left_path,
3298 BUG_ON(left_path->p_tree_depth == 0);
3300 left_el = path_leaf_el(left_path);
3304 left_path, &right_cpos);
3313 right_path = ocfs2_new_path_from_path(left_path);
3340 static int ocfs2_merge_rec_right(struct ocfs2_path *left_path,
3353 struct ocfs2_extent_list *el = path_leaf_el(left_path);
3354 struct buffer_head *bh = path_leaf_bh(left_path);
3363 ret = ocfs2_get_right_path(et, left_path, &right_path);
3382 subtree_index = ocfs2_find_subtree_root(et, left_path,
3393 root_bh = left_path->p_node[subtree_index].bh;
3413 left_path, i);
3425 ret = ocfs2_path_bh_journal_access(handle, et->et_ci, left_path,
3426 path_num_items(left_path) - 1);
3445 ocfs2_complete_edge_insert(handle, left_path, right_path,
3459 struct ocfs2_path *left_path = NULL;
3476 left_path = ocfs2_new_path_from_path(right_path);
3477 if (!left_path) {
3483 ret = ocfs2_find_path(et->et_ci, left_path, left_cpos);
3489 *ret_left_path = left_path;
3492 ocfs2_free_path(left_path);
3520 struct ocfs2_path *left_path = NULL;
3528 ret = ocfs2_get_left_path(et, right_path, &left_path);
3534 left_el = path_leaf_el(left_path);
3544 subtree_index = ocfs2_find_subtree_root(et, left_path,
3549 left_path);
3555 root_bh = left_path->p_node[subtree_index].bh;
3575 left_path, i);
3611 if (left_path) {
3612 ocfs2_journal_dirty(handle, path_leaf_bh(left_path));
3641 ocfs2_mv_path(right_path, left_path);
3642 left_path = NULL;
3644 ocfs2_complete_edge_insert(handle, left_path,
3648 ocfs2_free_path(left_path);
3992 struct ocfs2_path *left_path = NULL;
4031 left_path = ocfs2_new_path_from_path(right_path);
4032 if (!left_path) {
4038 ret = ocfs2_find_path(et->et_ci, left_path,
4046 * ocfs2_insert_path() will pass the left_path to the
4060 *ret_left_path = left_path;
4064 ocfs2_free_path(left_path);
4070 struct ocfs2_path *left_path,
4081 if (left_path)
4082 left_el = path_leaf_el(left_path);
4088 if (index == 0 && left_path) {
4129 BUG_ON(!left_path);
4152 * in. left_path should only be passed in if we need to update that
4157 struct ocfs2_path *left_path,
4165 if (left_path) {
4167 * There's a chance that left_path got passed back to
4172 ret = ocfs2_extend_trans(handle, left_path->p_tree_depth);
4178 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
4201 ocfs2_split_record(et, left_path, right_path,
4209 if (left_path)
4211 path_leaf_bh(left_path));
4218 if (left_path) {
4225 subtree_index = ocfs2_find_subtree_root(et, left_path,
4227 ocfs2_complete_edge_insert(handle, left_path, right_path,
4244 struct ocfs2_path *left_path = NULL;
4293 * left_path to account for an edge insert.
4301 right_path, &left_path);
4320 right_path, &left_path);
4327 ret = ocfs2_insert_path(handle, et, left_path, right_path,
4342 ocfs2_free_path(left_path);
4359 struct ocfs2_path *left_path = NULL, *right_path = NULL;
4372 left_path = ocfs2_new_path_from_path(path);
4373 if (!left_path) {
4379 status = ocfs2_find_path(et->et_ci, left_path,
4384 new_el = path_leaf_el(left_path);
4388 bh = path_leaf_bh(left_path);
4468 ocfs2_free_path(left_path);
5159 struct ocfs2_path *left_path = NULL;
5163 left_path = ocfs2_new_path_from_et(et);
5164 if (!left_path) {
5170 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
5175 el = path_leaf_el(left_path);
5215 ret = ocfs2_split_extent(handle, et, left_path,
5222 ocfs2_free_path(left_path);
5350 struct ocfs2_path *left_path = NULL;
5410 left_path = ocfs2_new_path_from_path(path);
5411 if (!left_path) {
5417 ret = ocfs2_find_path(et->et_ci, left_path,
5440 ret = ocfs2_journal_access_path(et->et_ci, handle, left_path);
5485 if (left_path) {
5488 subtree_index = ocfs2_find_subtree_root(et, left_path, path);
5489 ocfs2_complete_edge_insert(handle, left_path, path,
5500 ocfs2_free_path(left_path);