speed up /proc/filesystems
Status from this message: Applied to the vfs-6.16.procfs branch of the vfs/vfs.git tree.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | proc: add a helper for marking files as permanent by external consumersfs/ include/ | +7 | 0 replies | |
| 2/2 | fs: cache the string generated by reading /proc/filesystemsfs/ | +140 | 6 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] speed up /proc/filesystems
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(-)
Signature · 1 line
2.43.0