aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
authorRemi Pommarel <repk@triplefau.lt>2026-05-21 11:40:30 +0200
committerDominique Martinet <asmadeus@codewreck.org>2026-05-29 02:16:40 +0000
commit7025a34eda23ddedcb1c1d585b7bdc66586434f4 (patch)
tree458e42b580c659a59a9dde6f1940fcd7b2df9b9f /Documentation
parente7b0c932b719b7f54e5e10c467b234ce36bb7ab7 (diff)
downloadlinux-next-history-7025a34eda23ddedcb1c1d585b7bdc66586434f4.tar.gz
9p: Add mount option for negative dentry cache retention
Introduce a new mount option, negtimeout, for v9fs that allows users to specify how long negative dentries are retained in the cache. The retention time can be set in milliseconds (e.g. negtimeout=10000 for a 10secs retention time) or a negative value (e.g. negtimeout=-1) to keep negative entries until the buffer cache management removes them. For consistency reasons, this option should only be used in exclusive or read-only mount scenarios, aligning with the cache=loose usage. Signed-off-by: Remi Pommarel <repk@triplefau.lt> Message-ID: <b2d66500aa5a2f6540347c4aa46a4be10dd01bc6.1779355927.git.repk@triplefau.lt> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/filesystems/9p.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/filesystems/9p.rst b/Documentation/filesystems/9p.rst
index 65809a1dad218..3f65db648db06 100644
--- a/Documentation/filesystems/9p.rst
+++ b/Documentation/filesystems/9p.rst
@@ -235,6 +235,11 @@ Options
cachetag cache tag to use the specified persistent cache.
cache tags for existing cache sessions can be listed at
/sys/fs/9p/caches. (applies only to cache=fscache)
+
+ negtimeout the duration (in milliseconds) that negative dentries (paths
+ that do not actually exist) are retained in the cache. If
+ set to a negative value, those entries are kept indefinitely
+ until evicted by the buffer cache management system
============= ===============================================================
Behavior