Skip to content

fat: add a cache for msdos_format_name()

Caleb D.S. Brzezinski linux-fsdevel lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fat: define functions and data structures for a formatted name cachefs/fat/namei_msdos.c+96 -00 replies
2/3fat: add the msdos_format_name() filename cachefs/fat/namei_msdos.c+35 -05 replies
3/3fat: add hash machinery to relevant filesystem operationsfs/fat/namei_msdos.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] fat: add a cache for msdos_format_name()

Hi all,

This patch series adds a cache for the formatted names created by msdos_format_name(). In my testing, it resulted in approximately a 0.2 ms decrease in kernel time for listing a small directory.

The overhead is in memory, but each entry is only 25 bytes plus sizeof(struct hlist_node), and the cache also actively collects infrequently used nodes, keeping overall memory usage low.

Caleb D.S. Brzezinski (3):
fat: define functions and data structures for a formatted name cache
fat: add the msdos_format_name() filename cache
fat: add hash machinery to relevant filesystem operations

 fs/fat/namei_msdos.c | 140 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 140 insertions(+)

base-commit: 85a90500f9a1717c4e142ce92e6c1cb1a339ec78

Signature · 1 line
2.32.0