exfat: convert exfat_find_empty_entry() to use dentry cache
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Mon, 30 Oct 2023 10:00:51 +0000 (18:00 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 19 Mar 2024 11:55:54 +0000 (20:55 +0900)
commitaf02c72d0b621ccd0185248cacb6133a05481e75
tree733bf9937fae9b17c6fb23803d7ec17a252c34be
parentd97e060673906d16f2b146dfd862c5e8a1afe2e4
exfat: convert exfat_find_empty_entry() to use dentry cache

Before this conversion, each dentry traversed needs to be read
from the storage device or page cache. There are at least 16
dentries in a sector. This will result in frequent page cache
searches.

After this conversion, if all directory entries in a sector are
used, the sector only needs to be read once.

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