diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2022-11-10 12:38:16 +0300 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-03-19 14:56:10 +0300 |
commit | dc38fdc51ba650871f12e4032bfe170f5b0e8ed0 (patch) | |
tree | 50c97f2830bce22d46993567d40b9b0dd338b549 /fs/exfat | |
parent | 96cf51acccb64d24339822824c262a1d3744d218 (diff) | |
download | linux-dc38fdc51ba650871f12e4032bfe170f5b0e8ed0.tar.xz |
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>
Diffstat (limited to 'fs/exfat')
-rw-r--r-- | fs/exfat/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index b33497845a06..631ad9e8e32a 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -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); |