]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pidfs: raise DCACHE_DONTCACHE explicitly
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:20:17 +0000 (13:20 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 31 Oct 2025 09:16:24 +0000 (10:16 +0100)
commitb21cba8d8719881d7a9c8b746bc932be881af4c8
treee33449bd30e4a0a1e273f0a88d53a04066140a47
parent6dbe134e4bf775572c87aba5a39654c0dbd875a4
pidfs: raise DCACHE_DONTCACHE explicitly

While pidfs dentries are never hashed and thus retain_dentry() will never
consider them for placing them on the LRU it isn't great to always have
to go and remember that. Raise DCACHE_DONTCACHE explicitly as a visual
marker that dentries aren't kept but freed immediately instead.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-4-2e6f823ebdc0@kernel.org
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c