]> www.infradead.org Git - users/dwmw2/linux.git/commit
exfat: do not sync parent dir if just update timestamp
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 9 Nov 2022 10:30:33 +0000 (18:30 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 19 Mar 2024 11:56:05 +0000 (20:56 +0900)
commit96cf51acccb64d24339822824c262a1d3744d218
tree8d16f76bbe957c0f99474423d247b2beb07eaca8
parent4d714559768911b4738dca521ca38be84a8444b5
exfat: do not sync parent dir if just update timestamp

When sync or dir_sync is enabled, there is no need to sync the
parent directory's inode if only for updating its timestamp.

1. If an unexpected power failure occurs, the timestamp of the
   parent directory is not updated to the storage, which has no
   impact on the user.

2. The number of writes will be greatly reduced, which can not
   only improve performance, but also prolong device life.

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>
fs/exfat/namei.c