Lines Matching refs:subtree_index
2045 int subtree_index) in ocfs2_complete_edge_insert() argument
2066 for(i = left_path->p_tree_depth - 1; i > subtree_index; i--) { in ocfs2_complete_edge_insert()
2100 el = left_path->p_node[subtree_index].el; in ocfs2_complete_edge_insert()
2101 left_el = left_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2102 right_el = right_path->p_node[subtree_index + 1].el; in ocfs2_complete_edge_insert()
2105 left_path->p_node[subtree_index + 1].bh->b_blocknr); in ocfs2_complete_edge_insert()
2107 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_complete_edge_insert()
2116 int subtree_index) in ocfs2_rotate_subtree_right() argument
2144 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_right()
2145 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_right()
2148 subtree_index); in ocfs2_rotate_subtree_right()
2154 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_right()
2203 subtree_index); in ocfs2_rotate_subtree_right()
2617 int subtree_index, in ocfs2_unlink_subtree() argument
2621 struct buffer_head *root_bh = left_path->p_node[subtree_index].bh; in ocfs2_unlink_subtree()
2622 struct ocfs2_extent_list *root_el = left_path->p_node[subtree_index].el; in ocfs2_unlink_subtree()
2625 eb = (struct ocfs2_extent_block *)right_path->p_node[subtree_index + 1].bh->b_data; in ocfs2_unlink_subtree()
2643 subtree_index + 1); in ocfs2_unlink_subtree()
2650 int subtree_index, in ocfs2_rotate_subtree_left() argument
2663 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_rotate_subtree_left()
2664 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_rotate_subtree_left()
2724 subtree_index); in ocfs2_rotate_subtree_left()
2730 for(i = subtree_index + 1; i < path_num_items(right_path); i++) { in ocfs2_rotate_subtree_left()
2772 subtree_index, dealloc); in ocfs2_rotate_subtree_left()
2795 subtree_index); in ocfs2_rotate_subtree_left()
3026 int ret, subtree_index; in ocfs2_remove_rightmost_path() local
3073 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_remove_rightmost_path()
3076 subtree_index, dealloc); in ocfs2_remove_rightmost_path()
3359 int subtree_index = 0; in ocfs2_merge_rec_right() local
3389 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_right()
3392 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_right()
3400 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_right()
3401 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_right()
3404 subtree_index); in ocfs2_merge_rec_right()
3410 for (i = subtree_index + 1; in ocfs2_merge_rec_right()
3453 subtree_index); in ocfs2_merge_rec_right()
3520 int ret, i, subtree_index = 0, has_empty_extent = 0; in ocfs2_merge_rec_left() local
3551 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_merge_rec_left()
3554 ret = ocfs2_extend_rotate_transaction(handle, subtree_index, in ocfs2_merge_rec_left()
3562 root_bh = left_path->p_node[subtree_index].bh; in ocfs2_merge_rec_left()
3563 BUG_ON(root_bh != right_path->p_node[subtree_index].bh); in ocfs2_merge_rec_left()
3566 subtree_index); in ocfs2_merge_rec_left()
3572 for (i = subtree_index + 1; in ocfs2_merge_rec_left()
3652 right_path, subtree_index); in ocfs2_merge_rec_left()
4169 int ret, subtree_index; in ocfs2_insert_path() local
4232 subtree_index = ocfs2_find_subtree_root(et, left_path, in ocfs2_insert_path()
4235 subtree_index); in ocfs2_insert_path()
5493 int subtree_index; in ocfs2_truncate_rec() local
5495 subtree_index = ocfs2_find_subtree_root(et, left_path, path); in ocfs2_truncate_rec()
5497 subtree_index); in ocfs2_truncate_rec()