• Home
  • Raw
  • Download

Lines Matching refs:dest

4439 	struct btrfs_root *dest = BTRFS_I(inode)->root;  in btrfs_delete_subvolume()  local
4451 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume()
4452 if (dest->send_in_progress) { in btrfs_delete_subvolume()
4453 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4456 dest->root_key.objectid); in btrfs_delete_subvolume()
4459 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume()
4460 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume()
4462 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4466 err = may_destroy_subvol(dest); in btrfs_delete_subvolume()
4497 btrfs_record_root_in_trans(trans, dest); in btrfs_delete_subvolume()
4499 memset(&dest->root_item.drop_progress, 0, in btrfs_delete_subvolume()
4500 sizeof(dest->root_item.drop_progress)); in btrfs_delete_subvolume()
4501 dest->root_item.drop_level = 0; in btrfs_delete_subvolume()
4502 btrfs_set_root_refs(&dest->root_item, 0); in btrfs_delete_subvolume()
4504 if (!test_and_set_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &dest->state)) { in btrfs_delete_subvolume()
4507 dest->root_key.objectid); in btrfs_delete_subvolume()
4515 ret = btrfs_uuid_tree_remove(trans, dest->root_item.uuid, in btrfs_delete_subvolume()
4517 dest->root_key.objectid); in btrfs_delete_subvolume()
4523 if (!btrfs_is_empty_uuid(dest->root_item.received_uuid)) { in btrfs_delete_subvolume()
4525 dest->root_item.received_uuid, in btrfs_delete_subvolume()
4527 dest->root_key.objectid); in btrfs_delete_subvolume()
4547 spin_lock(&dest->root_item_lock); in btrfs_delete_subvolume()
4548 root_flags = btrfs_root_flags(&dest->root_item); in btrfs_delete_subvolume()
4549 btrfs_set_root_flags(&dest->root_item, in btrfs_delete_subvolume()
4551 spin_unlock(&dest->root_item_lock); in btrfs_delete_subvolume()
4554 btrfs_prune_dentries(dest); in btrfs_delete_subvolume()
4555 ASSERT(dest->send_in_progress == 0); in btrfs_delete_subvolume()
4558 if (dest->ino_cache_inode) { in btrfs_delete_subvolume()
4559 iput(dest->ino_cache_inode); in btrfs_delete_subvolume()
4560 dest->ino_cache_inode = NULL; in btrfs_delete_subvolume()
9532 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename_exchange() local
9551 if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest) in btrfs_rename_exchange()
9576 if (dest != root) in btrfs_rename_exchange()
9577 btrfs_record_root_in_trans(trans, dest); in btrfs_rename_exchange()
9600 ret = btrfs_insert_inode_ref(trans, dest, in btrfs_rename_exchange()
9615 btrfs_pin_log_trans(dest); in btrfs_rename_exchange()
9664 ret = __btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir), in btrfs_rename_exchange()
9669 ret = btrfs_update_inode(trans, dest, new_inode); in btrfs_rename_exchange()
9722 btrfs_end_log_trans(dest); in btrfs_rename_exchange()
9750 btrfs_end_log_trans(dest); in btrfs_rename_exchange()
9856 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename() local
9871 if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest) in btrfs_rename()
9884 ret = btrfs_check_dir_item_collision(dest, new_dir->i_ino, in btrfs_rename()
9932 if (dest != root) in btrfs_rename()
9933 btrfs_record_root_in_trans(trans, dest); in btrfs_rename()
9946 ret = btrfs_insert_inode_ref(trans, dest, in btrfs_rename()
9989 ret = btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir), in btrfs_rename()