]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd50070728e6cc0d96c2e449adcbd14e8e77bc0de
tree3d92a6365494e6251dbaf49c08cac8d8d9c79fc1
parent30fd3f29d801dc498a0d262580d0528e8c918935
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