Lines Matching refs:dest

4005 	struct btrfs_root *dest = BTRFS_I(inode)->root;
4018 spin_lock(&dest->root_item_lock);
4019 if (dest->send_in_progress) {
4020 spin_unlock(&dest->root_item_lock);
4023 dest->root_key.objectid);
4027 if (atomic_read(&dest->nr_swapfiles)) {
4028 spin_unlock(&dest->root_item_lock);
4035 root_flags = btrfs_root_flags(&dest->root_item);
4036 btrfs_set_root_flags(&dest->root_item,
4038 spin_unlock(&dest->root_item_lock);
4040 ret = may_destroy_subvol(dest);
4070 btrfs_record_root_in_trans(trans, dest);
4072 memset(&dest->root_item.drop_progress, 0,
4073 sizeof(dest->root_item.drop_progress));
4074 dest->root_item.drop_level = 0;
4075 btrfs_set_root_refs(&dest->root_item, 0);
4077 if (!test_and_set_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &dest->state)) {
4080 dest->root_key.objectid);
4087 ret = btrfs_uuid_tree_remove(trans, dest->root_item.uuid,
4089 dest->root_key.objectid);
4094 if (!btrfs_is_empty_uuid(dest->root_item.received_uuid)) {
4096 dest->root_item.received_uuid,
4098 dest->root_key.objectid);
4105 free_anon_bdev(dest->anon_dev);
4106 dest->anon_dev = 0;
4116 spin_lock(&dest->root_item_lock);
4117 root_flags = btrfs_root_flags(&dest->root_item);
4118 btrfs_set_root_flags(&dest->root_item,
4120 spin_unlock(&dest->root_item_lock);
4126 btrfs_prune_dentries(dest);
4127 ASSERT(dest->send_in_progress == 0);
4130 if (dest->ino_cache_inode) {
4131 iput(dest->ino_cache_inode);
4132 dest->ino_cache_inode = NULL;
8906 struct btrfs_root *dest = BTRFS_I(new_dir)->root;
8925 if (root != dest &&
8949 if (dest != root)
8950 btrfs_record_root_in_trans(trans, dest);
8973 ret = btrfs_insert_inode_ref(trans, dest,
8984 /* And now for the dest. */
8989 btrfs_pin_log_trans(dest);
9037 /* dest is a subvolume */
9040 } else { /* dest is an inode */
9041 ret = __btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir),
9046 ret = btrfs_update_inode(trans, dest, new_inode);
9083 btrfs_end_log_trans(dest);
9111 btrfs_end_log_trans(dest);
9184 struct btrfs_root *dest = BTRFS_I(new_dir)->root;
9197 if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest)
9210 ret = btrfs_check_dir_item_collision(dest, new_dir->i_ino,
9258 if (dest != root)
9259 btrfs_record_root_in_trans(trans, dest);
9272 ret = btrfs_insert_inode_ref(trans, dest,
9315 ret = btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir),