Lines Matching refs:dst_path
1935 struct btrfs_path *dst_path, in qgroup_trace_extent_swap() argument
1958 btrfs_node_key_to_cpu(dst_path->nodes[dst_level], &key, 0); in qgroup_trace_extent_swap()
1960 btrfs_item_key_to_cpu(dst_path->nodes[dst_level], &key, 0); in qgroup_trace_extent_swap()
1965 src_path->slots[root_level] = dst_path->slots[root_level]; in qgroup_trace_extent_swap()
2004 src_path->slots[cur_level] = dst_path->slots[cur_level]; in qgroup_trace_extent_swap()
2006 btrfs_node_key_to_cpu(dst_path->nodes[cur_level], in qgroup_trace_extent_swap()
2007 &dst_key, dst_path->slots[cur_level]); in qgroup_trace_extent_swap()
2011 btrfs_item_key_to_cpu(dst_path->nodes[cur_level], in qgroup_trace_extent_swap()
2012 &dst_key, dst_path->slots[cur_level]); in qgroup_trace_extent_swap()
2033 dst_path->nodes[dst_level]->start, in qgroup_trace_extent_swap()
2043 ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]); in qgroup_trace_extent_swap()
2074 struct btrfs_path *dst_path, in qgroup_trace_new_subtree_blocks() argument
2095 if (dst_path->nodes[cur_level] == NULL) { in qgroup_trace_new_subtree_blocks()
2116 eb = dst_path->nodes[cur_level + 1]; in qgroup_trace_new_subtree_blocks()
2117 parent_slot = dst_path->slots[cur_level + 1]; in qgroup_trace_new_subtree_blocks()
2137 dst_path->nodes[cur_level] = eb; in qgroup_trace_new_subtree_blocks()
2138 dst_path->slots[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2142 dst_path->locks[cur_level] = BTRFS_READ_LOCK_BLOCKING; in qgroup_trace_new_subtree_blocks()
2147 ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level, in qgroup_trace_new_subtree_blocks()
2152 eb = dst_path->nodes[cur_level]; in qgroup_trace_new_subtree_blocks()
2160 dst_path->slots[cur_level] = i; in qgroup_trace_new_subtree_blocks()
2164 dst_path, cur_level - 1, root_level, in qgroup_trace_new_subtree_blocks()
2174 btrfs_tree_unlock_rw(dst_path->nodes[cur_level], in qgroup_trace_new_subtree_blocks()
2175 dst_path->locks[cur_level]); in qgroup_trace_new_subtree_blocks()
2176 free_extent_buffer(dst_path->nodes[cur_level]); in qgroup_trace_new_subtree_blocks()
2177 dst_path->nodes[cur_level] = NULL; in qgroup_trace_new_subtree_blocks()
2178 dst_path->slots[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2179 dst_path->locks[cur_level] = 0; in qgroup_trace_new_subtree_blocks()
2191 struct btrfs_path *dst_path = NULL; in qgroup_trace_subtree_swap() local
2213 dst_path = btrfs_alloc_path(); in qgroup_trace_subtree_swap()
2214 if (!dst_path) { in qgroup_trace_subtree_swap()
2220 dst_path->nodes[level] = dst_eb; in qgroup_trace_subtree_swap()
2221 dst_path->slots[level] = 0; in qgroup_trace_subtree_swap()
2222 dst_path->locks[level] = 0; in qgroup_trace_subtree_swap()
2225 ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level, in qgroup_trace_subtree_swap()
2232 btrfs_free_path(dst_path); in qgroup_trace_subtree_swap()