[PATCH 0/2] speed up /proc/filesystems
From: Mateusz Guzik
Date: Sat Mar 29 2025 - 15:28:44 EST
I accidentally found out it is used a lot *and* is incredibly slow.
Part of it is procfs protecting the file from going away on each op,
other part is content generatin being dog slow.
Turns out procfs did not provide an interface to mark files as
permanent. I added easiest hack I could think of to remedy the problem,
I am not going to argue how to do it.
Mateusz Guzik (2):
proc: add a helper for marking files as permanent by external
consumers
fs: cache the string generated by reading /proc/filesystems
fs/filesystems.c | 148 +++++++++++++++++++++++++++++++++++++---
fs/proc/generic.c | 6 ++
include/linux/proc_fs.h | 1 +
3 files changed, 147 insertions(+), 8 deletions(-)
--
2.43.0