exfat: convert exfat_remove_entries() to use dentry cache
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 5 Aug 2022 07:55:58 +0000 (15:55 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 19 Mar 2024 11:55:40 +0000 (20:55 +0900)
commitff4343da02e8918deca8ddc91f3855a454e96868
tree59637e6d44d170f669cdcff9b7c6c6b85f09d4bf
parentcf8663fa994343941fbbd5c1a7f4d131c366ef2f
exfat: convert exfat_remove_entries() to use dentry cache

Before this conversion, in exfat_remove_entries(), to mark the
dentries in a dentry set as deleted, the sync times is equals
the dentry numbers if 'dirsync' or 'sync' is enabled.
That affects not only performance but also device life.

After this conversion, only needs to be synchronized once if
'dirsync' or 'sync' is enabled.

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