summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2026-04-22 14:29:48 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-21 14:39:33 +0300
commitc06d4e760c9842b013fce9614fbfd6db966c061d (patch)
tree94c19317e929d5ef1743daebbd114018c4dde821 /scripts/Makefile.thinlto
parent9f93417af489f74739c9434c4c43557ccc07d222 (diff)
downloadlinux-c06d4e760c9842b013fce9614fbfd6db966c061d.tar.xz
dcache: add extra sanity checks of the dentry in dentry_free()
If d_flags isn't what we expect, then it's good to display it. Add a new DENTRY_WARN_ONCE() macro that also displays d_flags for the dentry. Change D_FLAG_VERIFY() to call that instead of a generic WARN_ON_ONCE(). Change the existing hlist_unhashed() check in dentry_free() to use the new macro, and add checks for other invariants of a dead dentry. Notably: 1) Ensure that DCACHE_LRU_LIST and DCACHE_SHRINK_LIST are not set. 2) Ensure that d_lockref is negative Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260422-dcache-warn-v1-1-50155e1b40b6@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions