Lines Matching refs:dst_path
2047 * @dst_path = [ nodes[1] = NN(a), nodes[0] = NN(c) ]
2058 * The key for search can be extracted from @dst_path->nodes[dst_level]
2061 * 2) Mark the final tree blocks in @src_path and @dst_path qgroup dirty
2075 struct btrfs_path *dst_path,
2098 btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2100 btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2105 src_path->slots[root_level] = dst_path->slots[root_level];
2132 src_path->slots[cur_level] = dst_path->slots[cur_level];
2134 btrfs_node_key_to_cpu(dst_path->nodes[cur_level],
2135 &dst_key, dst_path->slots[cur_level]);
2139 btrfs_item_key_to_cpu(dst_path->nodes[cur_level],
2140 &dst_key, dst_path->slots[cur_level]);
2153 * Now both @dst_path and @src_path have been populated, record the tree
2160 ret = btrfs_qgroup_trace_extent(trans, dst_path->nodes[dst_level]->start,
2170 ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]);
2190 * @dst_path = [ nodes[1] = NN(b), nodes[0] = NULL ],
2201 struct btrfs_path *dst_path,
2222 if (dst_path->nodes[cur_level] == NULL) {
2227 * dst_path->nodes[root_level] must be initialized before
2232 "%s: dst_path->nodes[%d] not initialized, root_level=%d cur_level=%d",
2241 eb = dst_path->nodes[cur_level + 1];
2242 parent_slot = dst_path->slots[cur_level + 1];
2255 dst_path->nodes[cur_level] = eb;
2256 dst_path->slots[cur_level] = 0;
2259 dst_path->locks[cur_level] = BTRFS_READ_LOCK;
2264 ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level,
2269 eb = dst_path->nodes[cur_level];
2277 dst_path->slots[cur_level] = i;
2281 dst_path, cur_level - 1, root_level,
2291 btrfs_tree_unlock_rw(dst_path->nodes[cur_level],
2292 dst_path->locks[cur_level]);
2293 free_extent_buffer(dst_path->nodes[cur_level]);
2294 dst_path->nodes[cur_level] = NULL;
2295 dst_path->slots[cur_level] = 0;
2296 dst_path->locks[cur_level] = 0;
2308 struct btrfs_path *dst_path = NULL;
2330 dst_path = btrfs_alloc_path();
2331 if (!dst_path) {
2335 /* For dst_path */
2337 dst_path->nodes[level] = dst_eb;
2338 dst_path->slots[level] = 0;
2339 dst_path->locks[level] = 0;
2342 ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level,
2349 btrfs_free_path(dst_path);