exfat: convert exfat_init_ext_entry() to use dentry cache
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 5 Aug 2022 08:42:02 +0000 (16:42 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 19 Mar 2024 11:55:49 +0000 (20:55 +0900)
commitd97e060673906d16f2b146dfd862c5e8a1afe2e4
tree8320365699718c12f777d73effdba9da1baa312e
parent4e1aa22fea106014397455506d1383d519c4d3d1
exfat: convert exfat_init_ext_entry() to use dentry cache

Before this conversion, in exfat_init_ext_entry(), to init
the dentries in a dentry set, the sync times is equals the
dentry number 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