The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] CONFIG_VFS_DEBUG at last
@ 2025-02-05 18:38 Mateusz Guzik
  2025-02-05 18:38 ` [PATCH 1/3] vfs: add initial support for CONFIG_VFS_DEBUG Mateusz Guzik
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Mateusz Guzik @ 2025-02-05 18:38 UTC (permalink / raw)
  To: brauner; +Cc: viro, jack, linux-kernel, linux-fsdevel, Mateusz Guzik

This adds a super basic version just to get the mechanism going and
adds sample usage.

The macro set is incomplete (e.g., lack of locking macros) and
dump_inode routine fails to dump any state yet, to be implemented(tm).

I think despite the primitive state this is complete enough to start
sprinkling warns as necessary.

Mateusz Guzik (3):
  vfs: add initial support for CONFIG_VFS_DEBUG
  vfs: catch invalid modes in may_open
  vfs: use the new debug macros in inode_set_cached_link()

 fs/namei.c               |  2 ++
 include/linux/fs.h       | 16 +++----------
 include/linux/vfsdebug.h | 50 ++++++++++++++++++++++++++++++++++++++++
 lib/Kconfig.debug        |  9 ++++++++
 4 files changed, 64 insertions(+), 13 deletions(-)
 create mode 100644 include/linux/vfsdebug.h

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-06  9:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 18:38 [PATCH 0/3] CONFIG_VFS_DEBUG at last Mateusz Guzik
2025-02-05 18:38 ` [PATCH 1/3] vfs: add initial support for CONFIG_VFS_DEBUG Mateusz Guzik
2025-02-05 18:38 ` [PATCH 2/3] vfs: catch invalid modes in may_open Mateusz Guzik
2025-02-05 18:38 ` [PATCH 3/3] vfs: use the new debug macros in inode_set_cached_link() Mateusz Guzik
2025-02-05 18:57 ` [PATCH 0/3] CONFIG_VFS_DEBUG at last Mateusz Guzik
2025-02-06  9:46   ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox