Lines Matching refs:dest
4701 struct btrfs_root *dest = BTRFS_I(inode)->root; in btrfs_delete_subvolume() local
4714 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume()
4715 if (dest->send_in_progress) { in btrfs_delete_subvolume()
4716 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4719 dest->root_key.objectid); in btrfs_delete_subvolume()
4723 if (atomic_read(&dest->nr_swapfiles)) { in btrfs_delete_subvolume()
4724 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4731 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume()
4732 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume()
4734 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4736 ret = may_destroy_subvol(dest); in btrfs_delete_subvolume()
4766 ret = btrfs_record_root_in_trans(trans, dest); in btrfs_delete_subvolume()
4772 memset(&dest->root_item.drop_progress, 0, in btrfs_delete_subvolume()
4773 sizeof(dest->root_item.drop_progress)); in btrfs_delete_subvolume()
4774 btrfs_set_root_drop_level(&dest->root_item, 0); in btrfs_delete_subvolume()
4775 btrfs_set_root_refs(&dest->root_item, 0); in btrfs_delete_subvolume()
4777 if (!test_and_set_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &dest->state)) { in btrfs_delete_subvolume()
4780 dest->root_key.objectid); in btrfs_delete_subvolume()
4787 ret = btrfs_uuid_tree_remove(trans, dest->root_item.uuid, in btrfs_delete_subvolume()
4789 dest->root_key.objectid); in btrfs_delete_subvolume()
4794 if (!btrfs_is_empty_uuid(dest->root_item.received_uuid)) { in btrfs_delete_subvolume()
4796 dest->root_item.received_uuid, in btrfs_delete_subvolume()
4798 dest->root_key.objectid); in btrfs_delete_subvolume()
4805 free_anon_bdev(dest->anon_dev); in btrfs_delete_subvolume()
4806 dest->anon_dev = 0; in btrfs_delete_subvolume()
4816 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume()
4817 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume()
4818 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume()
4820 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4826 btrfs_prune_dentries(dest); in btrfs_delete_subvolume()
4827 ASSERT(dest->send_in_progress == 0); in btrfs_delete_subvolume()
9151 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename_exchange() local
9172 if (root != dest && in btrfs_rename_exchange()
9232 if (dest != root) { in btrfs_rename_exchange()
9233 ret = btrfs_record_root_in_trans(trans, dest); in btrfs_rename_exchange()
9257 ret = btrfs_insert_inode_ref(trans, dest, new_name, old_ino, in btrfs_rename_exchange()
9322 ret = btrfs_update_inode(trans, dest, BTRFS_I(new_inode)); in btrfs_rename_exchange()
9357 btrfs_pin_log_trans(dest); in btrfs_rename_exchange()
9371 btrfs_end_log_trans(dest); in btrfs_rename_exchange()
9413 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename() local
9427 if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest) in btrfs_rename()
9449 ret = btrfs_check_dir_item_collision(dest, new_dir->i_ino, &new_fname.disk_name); in btrfs_rename()
9529 if (dest != root) { in btrfs_rename()
9530 ret = btrfs_record_root_in_trans(trans, dest); in btrfs_rename()
9544 ret = btrfs_insert_inode_ref(trans, dest, &new_fname.disk_name, in btrfs_rename()