Lines Matching refs:send_root

152 	struct btrfs_root *send_root;  member
393 btrfs_err(sctx->send_root->fs_info, in inconsistent_snapshot_error()
396 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
817 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rename()
842 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_link()
866 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_unlink()
889 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_rmdir()
1345 if (clone_root->root == bctx->sctx->send_root && in iterate_backrefs()
1354 if (clone_root->root == bctx->sctx->send_root) { in iterate_backrefs()
1404 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in lookup_backref_cache()
1444 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in store_backref_cache()
1575 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in find_extent_clone()
1831 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1893 ret = get_inode_info(sctx->send_root, ino, &info); in get_cur_inode_state()
2207 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
2217 ret = get_inode_gen(sctx->send_root, ow_inode, &ow_gen); in did_overwrite_ref()
2237 ret = get_inode_gen(sctx->send_root, ow_inode, &ow_gen); in did_overwrite_ref()
2352 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2504 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2523 key.objectid = send_root->root_key.objectid; in send_subvol_begin()
2527 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2539 key.objectid != send_root->root_key.objectid) { in send_subvol_begin()
2560 if (!btrfs_is_empty_uuid(sctx->send_root->root_item.received_uuid)) in send_subvol_begin()
2562 sctx->send_root->root_item.received_uuid); in send_subvol_begin()
2565 sctx->send_root->root_item.uuid); in send_subvol_begin()
2568 btrfs_root_ctransid(&sctx->send_root->root_item)); in send_subvol_begin()
2591 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_truncate()
2621 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chmod()
2651 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_fileattr()
2684 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_chown()
2716 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_utimes()
2740 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2837 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_create_inode()
2853 ret = get_inode_info(sctx->send_root, ino, &info); in send_create_inode()
2878 btrfs_warn(sctx->send_root->fs_info, "unexpected inode type %o", in send_create_inode()
2897 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2961 btrfs_for_each_slot(sctx->send_root, &key, &found_key, path, iter_ret) { in did_create_dir()
3635 ret = get_inode_info(sctx->send_root, cur->dir, NULL); in apply_dir_move()
3811 ret = get_inode_gen(sctx->send_root, di_key.objectid, &right_gen); in wait_for_dest_dir_move()
4011 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
4163 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_recorded_refs()
4703 ret = get_inode_gen(sctx->send_root, dir, &dir_gen); in record_new_ref_if_needed()
4757 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
4786 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4821 root = sctx->send_root; in process_all_refs()
4827 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4977 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
5083 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
5098 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
5122 root = sctx->send_root; in process_all_new_xattrs()
5175 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in process_verity()
5179 inode = btrfs_iget(fs_info->sb, sctx->cur_ino, sctx->send_root); in process_verity()
5258 struct btrfs_root *root = sctx->send_root; in put_file_data()
5303 sctx->send_root->root_key.objectid); in put_file_data()
5329 struct btrfs_fs_info *fs_info = sctx->send_root->fs_info; in send_write()
5372 btrfs_debug(sctx->send_root->fs_info, in send_clone()
5393 if (clone_root->root == sctx->send_root) { in send_clone()
5394 ret = get_inode_gen(sctx->send_root, clone_root->ino, &gen); in send_clone()
5525 struct btrfs_root *root = sctx->send_root; in send_encoded_inline_extent()
5590 struct btrfs_root *root = sctx->send_root; in send_encoded_extent()
5730 struct btrfs_root *root = sctx->send_root; in send_extent_data()
5830 di = btrfs_lookup_xattr(NULL, sctx->send_root, path, sctx->cur_ino, in send_capabilities()
5892 len == sctx->send_root->fs_info->sectorsize) in clone_range()
6116 if (clone_root->root == sctx->send_root && in clone_range()
6143 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
6360 struct btrfs_root *root = sctx->send_root; in get_last_extent()
6565 root = sctx->send_root; in process_all_extents()
6661 ret = get_inode_info(sctx->send_root, sctx->cur_ino, &info); in finish_inode_if_needed()
7136 ret = get_inode_gen(sctx->send_root, dir, &new_gen); in dir_changed()
7224 lockdep_assert_not_held(&sctx->send_root->fs_info->commit_root_sem); in changed_cb()
7328 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
7330 struct btrfs_fs_info *fs_info = send_root->fs_info; in full_send_tree()
7346 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
7375 ret = search_key_again(sctx, send_root, path, &key); in full_send_tree()
7382 ret = btrfs_next_item(send_root, path); in full_send_tree()
7571 lockdep_assert_held_read(&sctx->send_root->fs_info->commit_root_sem); in restart_after_relocation()
7583 ret = search_key_again(sctx, sctx->send_root, left_path, left_key); in restart_after_relocation()
7615 root_level = btrfs_header_level(sctx->send_root->commit_root); in restart_after_relocation()
7946 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7999 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
8065 struct btrfs_root *send_root = BTRFS_I(inode)->root; in btrfs_ioctl_send() local
8066 struct btrfs_fs_info *fs_info = send_root->fs_info; in btrfs_ioctl_send()
8084 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
8085 if (btrfs_root_readonly(send_root) && send_root->dedupe_in_progress) { in btrfs_ioctl_send()
8086 dedupe_in_progress_warn(send_root); in btrfs_ioctl_send()
8087 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
8090 send_root->send_in_progress++; in btrfs_ioctl_send()
8091 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
8097 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
8166 sctx->send_root = send_root; in btrfs_ioctl_send()
8171 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
8296 btrfs_grab_root(sctx->send_root); in btrfs_ioctl_send()
8384 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()