Lines Matching defs:left_path
158 struct btrfs_path *left_path;
4757 ret = iterate_inode_ref(sctx->send_root, sctx->left_path,
4786 ret = iterate_inode_ref(sctx->send_root, sctx->left_path,
4977 ret = iterate_dir_item(sctx->send_root, sctx->left_path,
5083 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key,
5098 ret = iterate_dir_item(sctx->send_root, sctx->left_path,
6168 struct btrfs_path *left_path,
6194 eb = left_path->nodes[0];
6195 slot = left_path->slots[0];
6853 left_ii = btrfs_item_ptr(sctx->left_path->nodes[0],
6854 sctx->left_path->slots[0],
6856 left_gen = btrfs_inode_generation(sctx->left_path->nodes[0],
6918 if (btrfs_inode_nlink(sctx->left_path->nodes[0], left_ii) == 0) {
6926 sctx->left_path->nodes[0], left_ii);
6928 sctx->left_path->nodes[0], left_ii);
6930 sctx->left_path->nodes[0], left_ii);
6944 new_nlinks = btrfs_inode_nlink(sctx->left_path->nodes[0], left_ii);
6985 sctx->left_path->nodes[0],
6988 sctx->left_path->nodes[0],
6991 sctx->left_path->nodes[0],
7024 sctx->left_path->nodes[0], left_ii);
7026 sctx->left_path->nodes[0], left_ii);
7122 ret = process_extent(sctx, sctx->left_path,
7200 static int changed_cb(struct btrfs_path *left_path,
7236 * We always have a send root, so left_path is never NULL. We will not
7240 if (left_path->nodes[0])
7242 &left_path->nodes[0]->bflags));
7255 ret = compare_refs(sctx, left_path, key);
7261 return maybe_send_hole(sctx, left_path, key);
7269 sctx->left_path = left_path;
7525 static int tree_compare_item(struct btrfs_path *left_path,
7533 len1 = btrfs_item_size(left_path->nodes[0], left_path->slots[0]);
7538 off1 = btrfs_item_ptr_offset(left_path->nodes[0], left_path->slots[0]);
7542 read_extent_buffer(left_path->nodes[0], tmp_buf, off1, len1);
7569 static int restart_after_relocation(struct btrfs_path *left_path,
7582 btrfs_release_path(left_path);
7591 left_path->lowest_level = left_level;
7592 ret = search_key_again(sctx, sctx->send_root, left_path, left_key);
7608 ret = replace_node_with_clone(left_path, 0);
7626 ret = replace_node_with_clone(left_path, root_level);
7660 struct btrfs_path *left_path = NULL;
7679 left_path = btrfs_alloc_path();
7680 if (!left_path) {
7696 left_path->search_commit_root = 1;
7697 left_path->skip_locking = 1;
7747 left_path->nodes[left_level] =
7749 if (!left_path->nodes[left_level]) {
7772 btrfs_item_key_to_cpu(left_path->nodes[left_level],
7773 &left_key, left_path->slots[left_level]);
7775 btrfs_node_key_to_cpu(left_path->nodes[left_level],
7776 &left_key, left_path->slots[left_level]);
7795 ret = restart_after_relocation(left_path, right_path,
7805 ret = tree_advance(left_path, &left_level,
7833 ret = changed_cb(left_path, right_path,
7846 ret = changed_cb(left_path, right_path,
7862 ret = changed_cb(left_path, right_path,
7868 ret = changed_cb(left_path, right_path,
7876 WARN_ON(!extent_buffer_uptodate(left_path->nodes[0]));
7877 ret = tree_compare_item(left_path, right_path,
7883 ret = changed_cb(left_path, right_path,
7900 left_path->nodes[left_level],
7901 left_path->slots[left_level]);
7906 left_path->nodes[left_level],
7907 left_path->slots[left_level]);
7934 btrfs_free_path(left_path);