]> git.ipfire.org Git - thirdparty/linux.git/commit
exfat: add cache option for __exfat_ent_get
authorChi Zhiling <chizhiling@kylinos.cn>
Wed, 14 Jan 2026 12:12:37 +0000 (20:12 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Thu, 12 Feb 2026 12:21:47 +0000 (21:21 +0900)
commit967288e9a6f2ca88cf7d004d87bb3aa9db64fbe2
treecce783d5c37f96cb87230999f3163681cfdd7c02
parent0914882bdda645e10cf536b474631e1a023b67c0
exfat: add cache option for __exfat_ent_get

When multiple entries are obtained consecutively, these entries are mostly
stored adjacent to each other. this patch introduces a "last" parameter to
cache the last opened buffer head, and reuse it when possible, which
reduces the number of sb_bread() calls.

When the passed parameter "last" is NULL, it means cache option is
disabled, the behavior unchanged as it was.

Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/fatent.c