Lines Matching refs:dst_path

2174  * @dst_path = [ nodes[1] = NN(a), nodes[0] = NN(c) ]
2185 * The key for search can be extracted from @dst_path->nodes[dst_level]
2188 * 2) Mark the final tree blocks in @src_path and @dst_path qgroup dirty
2202 struct btrfs_path *dst_path,
2225 btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2227 btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2232 src_path->slots[root_level] = dst_path->slots[root_level];
2259 src_path->slots[cur_level] = dst_path->slots[cur_level];
2261 btrfs_node_key_to_cpu(dst_path->nodes[cur_level],
2262 &dst_key, dst_path->slots[cur_level]);
2266 btrfs_item_key_to_cpu(dst_path->nodes[cur_level],
2267 &dst_key, dst_path->slots[cur_level]);
2280 * Now both @dst_path and @src_path have been populated, record the tree
2287 ret = btrfs_qgroup_trace_extent(trans, dst_path->nodes[dst_level]->start,
2297 ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]);
2317 * @dst_path = [ nodes[1] = NN(b), nodes[0] = NULL ],
2328 struct btrfs_path *dst_path,
2349 if (dst_path->nodes[cur_level] == NULL) {
2354 * dst_path->nodes[root_level] must be initialized before
2359 "%s: dst_path->nodes[%d] not initialized, root_level=%d cur_level=%d",
2368 eb = dst_path->nodes[cur_level + 1];
2369 parent_slot = dst_path->slots[cur_level + 1];
2382 dst_path->nodes[cur_level] = eb;
2383 dst_path->slots[cur_level] = 0;
2386 dst_path->locks[cur_level] = BTRFS_READ_LOCK;
2391 ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level,
2396 eb = dst_path->nodes[cur_level];
2404 dst_path->slots[cur_level] = i;
2408 dst_path, cur_level - 1, root_level,
2418 btrfs_tree_unlock_rw(dst_path->nodes[cur_level],
2419 dst_path->locks[cur_level]);
2420 free_extent_buffer(dst_path->nodes[cur_level]);
2421 dst_path->nodes[cur_level] = NULL;
2422 dst_path->slots[cur_level] = 0;
2423 dst_path->locks[cur_level] = 0;
2435 struct btrfs_path *dst_path = NULL;
2457 dst_path = btrfs_alloc_path();
2458 if (!dst_path) {
2462 /* For dst_path */
2464 dst_path->nodes[level] = dst_eb;
2465 dst_path->slots[level] = 0;
2466 dst_path->locks[level] = 0;
2469 ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level,
2476 btrfs_free_path(dst_path);