]> git.ipfire.org Git - thirdparty/linux.git/commit
9p: Add mount option for negative dentry cache retention
authorRemi Pommarel <repk@triplefau.lt>
Thu, 21 May 2026 09:40:30 +0000 (11:40 +0200)
committerDominique Martinet <asmadeus@codewreck.org>
Sun, 21 Jun 2026 05:22:56 +0000 (05:22 +0000)
commit5670a84b5cda6b82016282accfd61ef36aceafbf
treee83c3ce64dcd1da54be8c5f1222a01784cf357dd
parentf00e6c1d282578b077b87b88f42e701bc40f2fff
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>
Documentation/filesystems/9p.rst
fs/9p/v9fs.c
fs/9p/v9fs.h