Lines Matching refs:new_dir
8081 struct inode *new_dir,
8088 struct btrfs_root *dest = BTRFS_I(new_dir)->root;
8118 ret = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_fname);
8142 trans_num_items = (old_dir == new_dir ? 9 : 10);
8179 ret = btrfs_set_inode_index(BTRFS_I(new_dir), &old_idx);
8195 btrfs_ino(BTRFS_I(new_dir)),
8219 inode_inc_iversion(new_dir);
8222 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8252 btrfs_record_unlink_dir(trans, BTRFS_I(new_dir),
8280 ret = btrfs_unlink_subvol(trans, BTRFS_I(new_dir), new_dentry);
8286 ret = __btrfs_unlink_inode(trans, BTRFS_I(new_dir),
8300 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode),
8328 btrfs_log_new_name(trans, new_dentry, BTRFS_I(new_dir),
8366 struct inode *new_dir, struct dentry *new_dentry,
8377 struct btrfs_root *dest = BTRFS_I(new_dir)->root;
8388 if (btrfs_ino(BTRFS_I(new_dir)) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
8407 ret = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_fname);
8414 ret = btrfs_check_dir_item_collision(dest, new_dir->i_ino, &new_fname.disk_name);
8476 if (new_dir != old_dir)
8500 ret = btrfs_set_inode_index(BTRFS_I(new_dir), &index);
8510 old_ino, btrfs_ino(BTRFS_I(new_dir)),
8517 inode_inc_iversion(new_dir);
8519 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8573 ret = btrfs_unlink_subvol(trans, BTRFS_I(new_dir), new_dentry);
8580 ret = btrfs_unlink_inode(trans, BTRFS_I(new_dir),
8598 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode),
8645 struct dentry *old_dentry, struct inode *new_dir,
8654 ret = btrfs_rename_exchange(old_dir, old_dentry, new_dir,
8657 ret = btrfs_rename(idmap, old_dir, old_dentry, new_dir,
8660 btrfs_btree_balance_dirty(BTRFS_I(new_dir)->root->fs_info);