diff options
| author | Mateusz Guzik <mjguzik@gmail.com> | 2026-04-26 00:08:44 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-11 23:13:01 +0200 |
| commit | 36b3306779ea58f994a614b3663a196707a66ce2 (patch) | |
| tree | d4b6f54356baa327dcd14355520d91ed94d1fa76 /drivers/platform/wmi/tests/git@git.tavy.me:linux.git | |
| parent | dc651e25a6d289bc08cfde032427fa17b3d1b22e (diff) | |
fs: cache the string generated by reading /proc/filesystems
It is being read surprisingly often (e.g., by mkdir, ls and even sed!).
This is lock-protected pointer chasing over a linked list to pay for
sprintf for every fs (32 on my boxen).
Instead cache the result.
While here make the file as permanent to avoid spurious ref trips in
procfs.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260425220844.1763933-4-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'drivers/platform/wmi/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
