]> 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)
commitd7bbc1ed24c62efd1e47b0235b9d12a1965d9781
tree3d92a6365494e6251dbaf49c08cac8d8d9c79fc1
parentbe5788577a1f33cd1d7bf70565bd5ac02a4d72d4
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