Lines Matching defs:old_dir

8079 static int btrfs_rename_exchange(struct inode *old_dir,
8084 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir);
8087 struct btrfs_root *root = BTRFS_I(old_dir)->root;
8114 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname);
8142 trans_num_items = (old_dir == new_dir ? 9 : 10);
8182 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx);
8208 btrfs_ino(BTRFS_I(old_dir)),
8218 inode_inc_iversion(old_dir);
8222 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8250 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir),
8258 ret = btrfs_unlink_subvol(trans, BTRFS_I(old_dir), old_dentry);
8264 ret = __btrfs_unlink_inode(trans, BTRFS_I(old_dir),
8307 ret = btrfs_add_link(trans, BTRFS_I(old_dir), BTRFS_I(new_inode),
8326 btrfs_log_new_name(trans, old_dentry, BTRFS_I(old_dir),
8365 struct inode *old_dir, struct dentry *old_dentry,
8369 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir);
8371 .dir = old_dir,
8376 struct btrfs_root *root = BTRFS_I(old_dir)->root;
8403 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname);
8437 whiteout_args.inode = new_whiteout_inode(idmap, old_dir);
8476 if (new_dir != old_dir)
8516 inode_inc_iversion(old_dir);
8519 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8545 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir),
8549 ret = btrfs_unlink_subvol(trans, BTRFS_I(old_dir), old_dentry);
8555 ret = __btrfs_unlink_inode(trans, BTRFS_I(old_dir),
8609 btrfs_log_new_name(trans, old_dentry, BTRFS_I(old_dir),
8644 static int btrfs_rename2(struct mnt_idmap *idmap, struct inode *old_dir,
8654 ret = btrfs_rename_exchange(old_dir, old_dentry, new_dir,
8657 ret = btrfs_rename(idmap, old_dir, old_dentry, new_dir,