Commit dc38fdc5 authored by Yuezhang Mo's avatar Yuezhang Mo Committed by Namjae Jeon

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: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: default avatarAndy Wu <Andy.Wu@sony.com>
Reviewed-by: default avatarAoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 96cf51ac
......@@ -1281,7 +1281,8 @@ static int exfat_rename(struct mnt_idmap *idmap,
}
inode_inc_iversion(old_dir);
mark_inode_dirty(old_dir);
if (new_dir != old_dir)
mark_inode_dirty(old_dir);
if (new_inode) {
exfat_unhash_inode(new_inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment