Lines Matching refs:send_root
88 struct btrfs_root *send_root; member
299 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
302 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
718 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rename()
743 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_link()
767 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_unlink()
790 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rmdir()
1237 if (found->root == bctx->sctx->send_root && in __iterate_backrefs()
1260 if (found->root == bctx->sctx->send_root) { in __iterate_backrefs()
1302 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in find_extent_clone()
1471 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1571 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1631 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1950 ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, in did_overwrite_ref()
1963 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1973 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2075 btrfs_err(sctx->send_root->fs_info, in name_cache_delete()
2213 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2364 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2383 key.objectid = send_root->objectid; in send_subvol_begin()
2387 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2399 key.objectid != send_root->objectid) { in send_subvol_begin()
2420 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin()
2422 sctx->send_root->root_item.received_uuid); in send_subvol_begin()
2425 sctx->send_root->root_item.uuid); in send_subvol_begin()
2428 le64_to_cpu(sctx->send_root->root_item.ctransid)); in send_subvol_begin()
2451 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_truncate()
2481 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chmod()
2511 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chown()
2543 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_utimes()
2567 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2606 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_create_inode()
2621 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, in send_create_inode()
2644 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", in send_create_inode()
2663 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2709 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in did_create_dir()
2717 ret = btrfs_next_leaf(sctx->send_root, path); in did_create_dir()
3360 ret = get_inode_info(sctx->send_root, cur->dir, NULL, in apply_dir_move()
3539 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3752 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3906 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4358 return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); in __record_new_ref()
4375 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4465 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
4493 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
4507 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4543 root = sctx->send_root; in process_all_refs()
4549 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4715 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4823 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4838 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4863 root = sctx->send_root; in process_all_new_xattrs()
4907 struct btrfs_root *root = sctx->send_root; in fill_read_buf()
4971 sctx->send_root->root_key.objectid); in fill_read_buf()
4999 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
5050 btrfs_debug(sctx->send_root->fs_info, in send_clone()
5071 if (clone_root->root == sctx->send_root) { in send_clone()
5072 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
5244 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()
5449 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
5686 struct btrfs_root *root = sctx->send_root; in get_last_extent()
5716 sctx->send_root->fs_info->sectorsize); in get_last_extent()
5825 sctx->send_root->fs_info->sectorsize); in maybe_send_hole()
5930 root = sctx->send_root; in process_all_extents()
6043 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
6504 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
6619 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
6633 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
6649 ret = btrfs_next_item(send_root, path); in full_send_tree()
6681 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
6735 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
6794 struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send() local
6795 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
6813 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
6814 send_root->send_in_progress++; in btrfs_ioctl_send()
6815 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
6821 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
6868 sctx->send_root = send_root; in btrfs_ioctl_send()
6873 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
6986 sctx->clone_roots[sctx->clone_roots_cnt++].root = sctx->send_root; in btrfs_ioctl_send()
7065 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()