Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2025 22:11:52 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4b56c7ff6c5b - main - tmpfs: Remove uses of DEBUG_VFS_LOCKS
Message-ID:  <202508032211.573MBq5F065881@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b56c7ff6c5b4e4f9dfd2eb09a5a901f4ff9b8b3

commit 4b56c7ff6c5b4e4f9dfd2eb09a5a901f4ff9b8b3
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-24 15:29:24 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-08-03 21:52:14 +0000

    tmpfs: Remove uses of DEBUG_VFS_LOCKS
    
    This assertion can reasonably be checked when plain INVARIANTS is
    configured, there's no need to configure a separate option.
    
    Reviewed by:    kib
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D51697
---
 sys/fs/tmpfs/tmpfs_vnops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 9d2a587b177a..79b6c8b2e6a1 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -384,7 +384,7 @@ static int
 tmpfs_access_locked(struct vnode *vp, struct tmpfs_node *node,
     accmode_t accmode, struct ucred *cred)
 {
-#ifdef DEBUG_VFS_LOCKS
+#ifdef INVARIANTS
 	if (!mtx_owned(TMPFS_NODE_MTX(node))) {
 		ASSERT_VOP_LOCKED(vp,
 		    "tmpfs_access_locked needs locked vnode or node");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508032211.573MBq5F065881>