Lines Matching refs:send_root
88 struct btrfs_root *send_root; member
307 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
310 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
726 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rename()
751 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_link()
775 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_unlink()
798 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rmdir()
1239 if (found->root == bctx->sctx->send_root && in __iterate_backrefs()
1249 if (found->root == bctx->sctx->send_root) { in __iterate_backrefs()
1300 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in find_extent_clone()
1439 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1538 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1598 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1913 ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, in did_overwrite_ref()
1926 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1936 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2038 btrfs_err(sctx->send_root->fs_info, in name_cache_delete()
2172 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2323 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2342 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2346 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2358 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
2379 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin()
2381 sctx->send_root->root_item.received_uuid); in send_subvol_begin()
2384 sctx->send_root->root_item.uuid); in send_subvol_begin()
2387 btrfs_root_ctransid(&sctx->send_root->root_item)); in send_subvol_begin()
2410 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_truncate()
2440 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chmod()
2470 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chown()
2502 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_utimes()
2526 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2565 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_create_inode()
2580 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, in send_create_inode()
2603 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", in send_create_inode()
2622 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2668 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in did_create_dir()
2676 ret = btrfs_next_leaf(sctx->send_root, path); in did_create_dir()
3319 ret = get_inode_info(sctx->send_root, cur->dir, NULL, in apply_dir_move()
3498 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3711 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3865 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4364 return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); in __record_new_ref()
4381 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4471 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
4499 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
4513 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4549 root = sctx->send_root; in process_all_refs()
4555 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4721 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4829 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4844 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4869 root = sctx->send_root; in process_all_new_xattrs()
4931 struct btrfs_root *root = sctx->send_root; in put_file_data()
5006 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
5049 btrfs_debug(sctx->send_root->fs_info, in send_clone()
5070 if (clone_root->root == sctx->send_root) { in send_clone()
5071 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
5243 di = btrfs_lookup_xattr(NULL, sctx->send_root, path, sctx->cur_ino, in send_capabilities()
5307 len == sctx->send_root->fs_info->sectorsize) in clone_range()
5506 if (clone_root->root == sctx->send_root && in clone_range()
5533 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
5750 struct btrfs_root *root = sctx->send_root; in get_last_extent()
5956 root = sctx->send_root; in process_all_extents()
6069 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
6530 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
6644 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
6659 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
6675 ret = btrfs_next_item(send_root, path); in full_send_tree()
7096 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7149 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
7215 struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send() local
7216 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
7232 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
7233 if (btrfs_root_readonly(send_root) && send_root->dedupe_in_progress) { in btrfs_ioctl_send()
7234 dedupe_in_progress_warn(send_root); in btrfs_ioctl_send()
7235 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7238 send_root->send_in_progress++; in btrfs_ioctl_send()
7239 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7245 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
7285 sctx->send_root = send_root; in btrfs_ioctl_send()
7290 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
7396 btrfs_grab_root(sctx->send_root); in btrfs_ioctl_send()
7491 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()