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()
1242 if (found->root == bctx->sctx->send_root && in __iterate_backrefs()
1252 if (found->root == bctx->sctx->send_root) { in __iterate_backrefs()
1303 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in find_extent_clone()
1461 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1561 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1621 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1936 ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, in did_overwrite_ref()
1949 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1959 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2061 btrfs_err(sctx->send_root->fs_info, in name_cache_delete()
2199 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2350 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2369 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2373 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2385 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
2406 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin()
2408 sctx->send_root->root_item.received_uuid); in send_subvol_begin()
2411 sctx->send_root->root_item.uuid); in send_subvol_begin()
2414 le64_to_cpu(sctx->send_root->root_item.ctransid)); in send_subvol_begin()
2437 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_truncate()
2467 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chmod()
2497 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chown()
2529 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_utimes()
2553 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2592 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_create_inode()
2607 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, in send_create_inode()
2630 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", in send_create_inode()
2649 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2695 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in did_create_dir()
2703 ret = btrfs_next_leaf(sctx->send_root, path); in did_create_dir()
3346 ret = get_inode_info(sctx->send_root, cur->dir, NULL, in apply_dir_move()
3525 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3738 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3892 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4391 return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); in __record_new_ref()
4408 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4498 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
4526 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
4540 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4576 root = sctx->send_root; in process_all_refs()
4582 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4748 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4856 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4871 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4896 root = sctx->send_root; in process_all_new_xattrs()
4958 struct btrfs_root *root = sctx->send_root; in put_file_data()
5012 sctx->send_root->root_key.objectid); in put_file_data()
5040 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
5083 btrfs_debug(sctx->send_root->fs_info, in send_clone()
5104 if (clone_root->root == sctx->send_root) { in send_clone()
5105 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
5277 di = btrfs_lookup_xattr(NULL, sctx->send_root, path, sctx->cur_ino, in send_capabilities()
5341 len == sctx->send_root->fs_info->sectorsize) in clone_range()
5562 if (clone_root->root == sctx->send_root && in clone_range()
5589 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
5806 struct btrfs_root *root = sctx->send_root; in get_last_extent()
6012 root = sctx->send_root; in process_all_extents()
6125 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
6586 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
6701 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
6715 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
6731 ret = btrfs_next_item(send_root, path); in full_send_tree()
7122 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7175 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
7241 struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send() local
7242 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
7258 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
7259 if (btrfs_root_readonly(send_root) && send_root->dedupe_in_progress) { in btrfs_ioctl_send()
7260 dedupe_in_progress_warn(send_root); in btrfs_ioctl_send()
7261 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7264 send_root->send_in_progress++; in btrfs_ioctl_send()
7265 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
7271 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
7311 sctx->send_root = send_root; in btrfs_ioctl_send()
7316 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
7422 btrfs_grab_root(sctx->send_root); in btrfs_ioctl_send()
7519 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()