[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250205183839.395081-1-mjguzik@gmail.com>
Date: Wed, 5 Feb 2025 19:38:36 +0100
From: Mateusz Guzik <mjguzik@...il.com>
To: brauner@...nel.org
Cc: viro@...iv.linux.org.uk,
jack@...e.cz,
linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
Mateusz Guzik <mjguzik@...il.com>
Subject: [PATCH 0/3] CONFIG_VFS_DEBUG at last
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
Powered by blists - more mailing lists