shmem: no dentry retention past the refcount reaching zero
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Feb 2025 01:50:42 +0000 (20:50 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jun 2025 17:40:01 +0000 (13:40 -0400)
commit3542920b91831974e3b9b3ce4bc083657a4f43d6
tree27be9d95eff4c25e756cff04c3a18f8019b9c624
parente95db51c81f54dd12ea465b5127e4786f62a1095
shmem: no dentry retention past the refcount reaching zero

Just set DCACHE_DONTCACHE in ->s_d_flags and be done with that.
Dentries there live for as long as they are pinned; once the
refcount hits zero, that's it.  The same, of course, goes for
other tree-in-dcache filesystems - more in the next commits...

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/shmem.c