Lines Matching refs:send_root
88 struct btrfs_root *send_root; member
306 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
309 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
725 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rename()
750 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_link()
774 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_unlink()
797 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rmdir()
1241 if (found->root == bctx->sctx->send_root && in __iterate_backrefs()
1251 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()
1460 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1560 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1620 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1935 ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, in did_overwrite_ref()
1948 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1958 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2060 btrfs_err(sctx->send_root->fs_info, in name_cache_delete()
2198 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2349 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2368 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2372 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2384 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
2405 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin()
2407 sctx->send_root->root_item.received_uuid); in send_subvol_begin()
2410 sctx->send_root->root_item.uuid); in send_subvol_begin()
2413 le64_to_cpu(sctx->send_root->root_item.ctransid)); in send_subvol_begin()
2436 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_truncate()
2466 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chmod()
2496 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chown()
2528 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_utimes()
2552 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2591 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_create_inode()
2606 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, in send_create_inode()
2629 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", in send_create_inode()
2648 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2694 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in did_create_dir()
2702 ret = btrfs_next_leaf(sctx->send_root, path); in did_create_dir()
3333 ret = get_inode_info(sctx->send_root, cur->dir, NULL, in apply_dir_move()
3512 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3725 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3879 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4367 return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); in __record_new_ref()
4384 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4474 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
4502 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
4516 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4552 root = sctx->send_root; in process_all_refs()
4558 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4724 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4832 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4847 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4872 root = sctx->send_root; in process_all_new_xattrs()
4934 struct btrfs_root *root = sctx->send_root; in put_file_data()
5012 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
5055 btrfs_debug(sctx->send_root->fs_info, in send_clone()
5076 if (clone_root->root == sctx->send_root) { in send_clone()
5077 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
5249 di = btrfs_lookup_xattr(NULL, sctx->send_root, path, sctx->cur_ino, in send_capabilities()
5313 len == sctx->send_root->fs_info->sectorsize) in clone_range()
5524 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
5741 struct btrfs_root *root = sctx->send_root; in get_last_extent()
5947 root = sctx->send_root; in process_all_extents()
6060 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
6521 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
6636 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
6650 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
6666 ret = btrfs_next_item(send_root, path); in full_send_tree()
7057 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7110 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
7176 struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send() local
7177 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
7193 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
7194 if (btrfs_root_readonly(send_root) && send_root->dedupe_in_progress) { in btrfs_ioctl_send()
7195 dedupe_in_progress_warn(send_root); in btrfs_ioctl_send()
7196 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7199 send_root->send_in_progress++; in btrfs_ioctl_send()
7200 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7206 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
7246 sctx->send_root = send_root; in btrfs_ioctl_send()
7251 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
7357 btrfs_grab_root(sctx->send_root); in btrfs_ioctl_send()
7454 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()