aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/caching/index.rst
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2025-06-11 16:18:15 +0000
committerAl Viro <[email protected]>2025-06-11 17:34:30 +0000
commitd9b13cdad80dc11d74408cf201939a946e9303a6 (patch)
tree2187756139bf1af8f75460cca4d72c6ac2c04967 /Documentation/filesystems/caching/index.rst
parentset_default_d_op(): calculate the matching value for ->d_flags (diff)
downloadkernel-d9b13cdad80dc11d74408cf201939a946e9303a6.tar.gz
kernel-d9b13cdad80dc11d74408cf201939a946e9303a6.zip
tracefs: Add d_delete to remove negative dentries
If a lookup in tracefs is done on a file that does not exist, it leaves a dentry hanging around until memory pressure removes it. But eventfs dentries should hang around as when their ref count goes to zero, it requires more work to recreate it. For the rest of the tracefs dentries, they hang around as their dentry is used as a descriptor for the tracing system. But if a file lookup happens for a file in tracefs that does not exist, it should be deleted. Add a .d_delete callback that checks if dentry->fsdata is set or not. Only eventfs dentries set fsdata so if it has content it should not be deleted and should hang around in the cache. Reported-by: Al Viro <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'Documentation/filesystems/caching/index.rst')
0 files changed, 0 insertions, 0 deletions