Lines Matching refs:dst_path

1971  * @dst_path = [ nodes[1] = NN(a), nodes[0] = NN(c) ]
1982 * The key for search can be extracted from @dst_path->nodes[dst_level]
1985 * 2) Mark the final tree blocks in @src_path and @dst_path qgroup dirty
1999 struct btrfs_path *dst_path,
2022 btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2024 btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0);
2029 src_path->slots[root_level] = dst_path->slots[root_level];
2068 src_path->slots[cur_level] = dst_path->slots[cur_level];
2070 btrfs_node_key_to_cpu(dst_path->nodes[cur_level],
2071 &dst_key, dst_path->slots[cur_level]);
2075 btrfs_item_key_to_cpu(dst_path->nodes[cur_level],
2076 &dst_key, dst_path->slots[cur_level]);
2089 * Now both @dst_path and @src_path have been populated, record the tree
2097 dst_path->nodes[dst_level]->start,
2107 ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]);
2127 * @dst_path = [ nodes[1] = NN(b), nodes[0] = NULL ],
2138 struct btrfs_path *dst_path,
2159 if (dst_path->nodes[cur_level] == NULL) {
2166 * dst_path->nodes[root_level] must be initialized before
2171 "%s: dst_path->nodes[%d] not initialized, root_level=%d cur_level=%d",
2180 eb = dst_path->nodes[cur_level + 1];
2181 parent_slot = dst_path->slots[cur_level + 1];
2201 dst_path->nodes[cur_level] = eb;
2202 dst_path->slots[cur_level] = 0;
2206 dst_path->locks[cur_level] = BTRFS_READ_LOCK_BLOCKING;
2211 ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level,
2216 eb = dst_path->nodes[cur_level];
2224 dst_path->slots[cur_level] = i;
2228 dst_path, cur_level - 1, root_level,
2238 btrfs_tree_unlock_rw(dst_path->nodes[cur_level],
2239 dst_path->locks[cur_level]);
2240 free_extent_buffer(dst_path->nodes[cur_level]);
2241 dst_path->nodes[cur_level] = NULL;
2242 dst_path->slots[cur_level] = 0;
2243 dst_path->locks[cur_level] = 0;
2255 struct btrfs_path *dst_path = NULL;
2277 dst_path = btrfs_alloc_path();
2278 if (!dst_path) {
2282 /* For dst_path */
2284 dst_path->nodes[level] = dst_eb;
2285 dst_path->slots[level] = 0;
2286 dst_path->locks[level] = 0;
2289 ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level,
2296 btrfs_free_path(dst_path);