mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-12 10:31:30 +00:00
exfat: convert to simple_rename_timestamp
A rename potentially involves updating 4 different inode timestamps. Convert to the new simple_rename_timestamp helper function. Signed-off-by: Jeff Layton <jlayton@kernel.org> Message-Id: <20230705190309.579783-10-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
944d0d9def
commit
d06cdfddd1
@ -1312,8 +1312,8 @@ static int exfat_rename(struct mnt_idmap *idmap,
|
|||||||
goto unlock;
|
goto unlock;
|
||||||
|
|
||||||
inode_inc_iversion(new_dir);
|
inode_inc_iversion(new_dir);
|
||||||
new_dir->i_ctime = new_dir->i_mtime = new_dir->i_atime =
|
simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
|
||||||
EXFAT_I(new_dir)->i_crtime = current_time(new_dir);
|
EXFAT_I(new_dir)->i_crtime = current_time(new_dir);
|
||||||
exfat_truncate_atime(&new_dir->i_atime);
|
exfat_truncate_atime(&new_dir->i_atime);
|
||||||
if (IS_DIRSYNC(new_dir))
|
if (IS_DIRSYNC(new_dir))
|
||||||
exfat_sync_inode(new_dir);
|
exfat_sync_inode(new_dir);
|
||||||
@ -1336,7 +1336,6 @@ static int exfat_rename(struct mnt_idmap *idmap,
|
|||||||
}
|
}
|
||||||
|
|
||||||
inode_inc_iversion(old_dir);
|
inode_inc_iversion(old_dir);
|
||||||
old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir);
|
|
||||||
if (IS_DIRSYNC(old_dir))
|
if (IS_DIRSYNC(old_dir))
|
||||||
exfat_sync_inode(old_dir);
|
exfat_sync_inode(old_dir);
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user