1

exfat: remove duplicate update parent dir

For renaming, the directory only needs to be updated once if it
is in the same directory.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
Yuezhang Mo 2022-11-10 17:38:16 +08:00 committed by Namjae Jeon
parent 96cf51accc
commit dc38fdc51b

View File

@ -1281,7 +1281,8 @@ static int exfat_rename(struct mnt_idmap *idmap,
} }
inode_inc_iversion(old_dir); inode_inc_iversion(old_dir);
mark_inode_dirty(old_dir); if (new_dir != old_dir)
mark_inode_dirty(old_dir);
if (new_inode) { if (new_inode) {
exfat_unhash_inode(new_inode); exfat_unhash_inode(new_inode);