Lines Matching refs:dst_path
2075 struct btrfs_path *dst_path, in qgroup_trace_extent_swap() argument
2098 btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0); in qgroup_trace_extent_swap()
2100 btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0); in qgroup_trace_extent_swap()
2105 src_path->slots[root_level] = dst_path->slots[root_level]; in qgroup_trace_extent_swap()
2132 src_path->slots[cur_level] = dst_path->slots[cur_level]; in qgroup_trace_extent_swap()
2134 btrfs_node_key_to_cpu(dst_path->nodes[cur_level], in qgroup_trace_extent_swap()
2135 &dst_key, dst_path->slots[cur_level]); in qgroup_trace_extent_swap()
2139 btrfs_item_key_to_cpu(dst_path->nodes[cur_level], in qgroup_trace_extent_swap()
2140 &dst_key, dst_path->slots[cur_level]); in qgroup_trace_extent_swap()
2160 ret = btrfs_qgroup_trace_extent(trans, dst_path->nodes[dst_level]->start, in qgroup_trace_extent_swap()
2170 ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]); in qgroup_trace_extent_swap()
2201 struct btrfs_path *dst_path, in qgroup_trace_new_subtree_blocks() argument
2222 if (dst_path->nodes[cur_level] == NULL) { in qgroup_trace_new_subtree_blocks()
2241 eb = dst_path->nodes[cur_level + 1]; in qgroup_trace_new_subtree_blocks()
2242 parent_slot = dst_path->slots[cur_level + 1]; in qgroup_trace_new_subtree_blocks()
2255 dst_path->nodes[cur_level] = eb; in qgroup_trace_new_subtree_blocks()
2256 dst_path->slots[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2259 dst_path->locks[cur_level] = BTRFS_READ_LOCK; in qgroup_trace_new_subtree_blocks()
2264 ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level, in qgroup_trace_new_subtree_blocks()
2269 eb = dst_path->nodes[cur_level]; in qgroup_trace_new_subtree_blocks()
2277 dst_path->slots[cur_level] = i; in qgroup_trace_new_subtree_blocks()
2281 dst_path, cur_level - 1, root_level, in qgroup_trace_new_subtree_blocks()
2291 btrfs_tree_unlock_rw(dst_path->nodes[cur_level], in qgroup_trace_new_subtree_blocks()
2292 dst_path->locks[cur_level]); in qgroup_trace_new_subtree_blocks()
2293 free_extent_buffer(dst_path->nodes[cur_level]); in qgroup_trace_new_subtree_blocks()
2294 dst_path->nodes[cur_level] = NULL; in qgroup_trace_new_subtree_blocks()
2295 dst_path->slots[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2296 dst_path->locks[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2308 struct btrfs_path *dst_path = NULL; in qgroup_trace_subtree_swap() local
2330 dst_path = btrfs_alloc_path(); in qgroup_trace_subtree_swap()
2331 if (!dst_path) { in qgroup_trace_subtree_swap()
2337 dst_path->nodes[level] = dst_eb; in qgroup_trace_subtree_swap()
2338 dst_path->slots[level] = 0; in qgroup_trace_subtree_swap()
2339 dst_path->locks[level] = 0; in qgroup_trace_subtree_swap()
2342 ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level, in qgroup_trace_subtree_swap()
2349 btrfs_free_path(dst_path); in qgroup_trace_subtree_swap()