Lines Matching refs:send_root
79 struct btrfs_root *send_root; member
304 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
307 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
723 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rename()
748 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_link()
772 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_unlink()
795 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()
1291 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in find_extent_clone()
1434 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1534 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1594 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1909 ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, in did_overwrite_ref()
1922 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1932 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2034 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 le64_to_cpu(sctx->send_root->root_item.ctransid)); 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()
3307 ret = get_inode_info(sctx->send_root, cur->dir, NULL, in apply_dir_move()
3486 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3699 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3787 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4222 return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); in __record_new_ref()
4239 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4329 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
4357 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
4371 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4407 root = sctx->send_root; in process_all_refs()
4413 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4575 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4683 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4698 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4723 root = sctx->send_root; in process_all_new_xattrs()
4767 struct btrfs_root *root = sctx->send_root; in fill_read_buf()
4855 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
4906 btrfs_debug(sctx->send_root->fs_info, in send_clone()
4927 if (clone_root->root == sctx->send_root) { in send_clone()
4928 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
5106 len == sctx->send_root->fs_info->sectorsize) in clone_range()
5319 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
5556 struct btrfs_root *root = sctx->send_root; in get_last_extent()
5586 sctx->send_root->fs_info->sectorsize); in get_last_extent()
5695 sctx->send_root->fs_info->sectorsize); in maybe_send_hole()
5800 root = sctx->send_root; in process_all_extents()
5913 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
6370 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
6485 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
6499 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
6515 ret = btrfs_next_item(send_root, path); in full_send_tree()
6907 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
6961 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
7027 struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send() local
7028 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
7046 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
7047 if (btrfs_root_readonly(send_root) && send_root->dedupe_in_progress) { in btrfs_ioctl_send()
7048 dedupe_in_progress_warn(send_root); in btrfs_ioctl_send()
7049 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7052 send_root->send_in_progress++; in btrfs_ioctl_send()
7053 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7059 WARN_ON(send_root->orphan_cleanup_state != ORPHAN_CLEANUP_DONE); in btrfs_ioctl_send()
7065 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
7112 sctx->send_root = send_root; in btrfs_ioctl_send()
7117 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
7244 sctx->clone_roots[sctx->clone_roots_cnt++].root = sctx->send_root; in btrfs_ioctl_send()
7337 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()