exfat: remove duplicate write inode for extending dir/file
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 29 Jun 2022 03:05:51 +0000 (11:05 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 1 Aug 2022 01:14:06 +0000 (10:14 +0900)
commitbe17b1ccd4e82a66b9d9676dec8edce137e967d8
tree3d92a6365494e6251dbaf49c08cac8d8d9c79fc1
parent4493895b2bdcca135a8e7c1384deaa35316e8e22
exfat: remove duplicate write inode for extending dir/file

Since the timestamps need to be updated, the directory entries
will be updated by mark_inode_dirty() whether or not a new
cluster is allocated for the file or directory, so there is no
need to use __exfat_write_inode() to update the directory entries
when allocating a new cluster for a file or 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: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/inode.c
fs/exfat/namei.c