Lines Matching refs:old_dir
931 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,
941 struct super_block *sb = old_dir->i_sb;
947 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo);
951 if (old_dir != new_dir) {
958 ts = current_time(old_dir);
987 drop_nlink(old_dir);
992 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */
996 vfat_update_dir_metadata(old_dir, &ts);
1017 corrupt |= vfat_update_dotdot_de(old_dir, old_inode, dotdot_bh,
1060 static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
1066 struct timespec64 ts = current_time(old_dir);
1069 struct super_block *sb = old_dir->i_sb;
1078 if (old_dir != new_dir) {
1095 err = vfat_sync_ipos(old_dir, new_inode);
1110 err = vfat_update_dotdot_de(old_dir, new_inode, new_dotdot_bh,
1119 vfat_move_nlink(old_dir, new_dir);
1121 vfat_move_nlink(new_dir, old_dir);
1124 vfat_update_dir_metadata(old_dir, &ts);
1126 if (old_dir != new_dir)
1144 corrupt |= vfat_update_dotdot_de(old_dir, old_inode,
1151 corrupt |= vfat_sync_ipos(old_dir, old_inode);
1161 static int vfat_rename2(struct mnt_idmap *idmap, struct inode *old_dir,
1169 return vfat_rename_exchange(old_dir, old_dentry,
1174 return vfat_rename(old_dir, old_dentry, new_dir, new_dentry);