Lines Matching defs:left_path

157 	struct btrfs_path *left_path;
4774 ret = iterate_inode_ref(sctx->send_root, sctx->left_path,
4803 ret = iterate_inode_ref(sctx->send_root, sctx->left_path,
4994 ret = iterate_dir_item(sctx->send_root, sctx->left_path,
5100 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key,
5115 ret = iterate_dir_item(sctx->send_root, sctx->left_path,
6185 struct btrfs_path *left_path,
6211 eb = left_path->nodes[0];
6212 slot = left_path->slots[0];
6867 left_ii = btrfs_item_ptr(sctx->left_path->nodes[0],
6868 sctx->left_path->slots[0],
6870 left_gen = btrfs_inode_generation(sctx->left_path->nodes[0],
6932 if (btrfs_inode_nlink(sctx->left_path->nodes[0], left_ii) == 0) {
6940 sctx->left_path->nodes[0], left_ii);
6942 sctx->left_path->nodes[0], left_ii);
6944 sctx->left_path->nodes[0], left_ii);
6958 new_nlinks = btrfs_inode_nlink(sctx->left_path->nodes[0], left_ii);
6999 sctx->left_path->nodes[0],
7002 sctx->left_path->nodes[0],
7005 sctx->left_path->nodes[0],
7038 sctx->left_path->nodes[0], left_ii);
7040 sctx->left_path->nodes[0], left_ii);
7136 ret = process_extent(sctx, sctx->left_path,
7214 static int changed_cb(struct btrfs_path *left_path,
7250 * We always have a send root, so left_path is never NULL. We will not
7254 if (left_path->nodes[0])
7256 &left_path->nodes[0]->bflags));
7269 ret = compare_refs(sctx, left_path, key);
7275 return maybe_send_hole(sctx, left_path, key);
7283 sctx->left_path = left_path;
7539 static int tree_compare_item(struct btrfs_path *left_path,
7547 len1 = btrfs_item_size(left_path->nodes[0], left_path->slots[0]);
7552 off1 = btrfs_item_ptr_offset(left_path->nodes[0], left_path->slots[0]);
7556 read_extent_buffer(left_path->nodes[0], tmp_buf, off1, len1);
7583 static int restart_after_relocation(struct btrfs_path *left_path,
7596 btrfs_release_path(left_path);
7605 left_path->lowest_level = left_level;
7606 ret = search_key_again(sctx, sctx->send_root, left_path, left_key);
7622 ret = replace_node_with_clone(left_path, 0);
7640 ret = replace_node_with_clone(left_path, root_level);
7674 struct btrfs_path *left_path = NULL;
7693 left_path = btrfs_alloc_path();
7694 if (!left_path) {
7710 left_path->search_commit_root = 1;
7711 left_path->skip_locking = 1;
7761 left_path->nodes[left_level] =
7763 if (!left_path->nodes[left_level]) {
7786 btrfs_item_key_to_cpu(left_path->nodes[left_level],
7787 &left_key, left_path->slots[left_level]);
7789 btrfs_node_key_to_cpu(left_path->nodes[left_level],
7790 &left_key, left_path->slots[left_level]);
7809 ret = restart_after_relocation(left_path, right_path,
7819 ret = tree_advance(left_path, &left_level,
7847 ret = changed_cb(left_path, right_path,
7860 ret = changed_cb(left_path, right_path,
7876 ret = changed_cb(left_path, right_path,
7882 ret = changed_cb(left_path, right_path,
7890 WARN_ON(!extent_buffer_uptodate(left_path->nodes[0]));
7891 ret = tree_compare_item(left_path, right_path,
7897 ret = changed_cb(left_path, right_path,
7914 left_path->nodes[left_level],
7915 left_path->slots[left_level]);
7920 left_path->nodes[left_level],
7921 left_path->slots[left_level]);
7948 btrfs_free_path(left_path);