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
This commit is contained in:
Mark Johnston 2025-07-24 15:29:24 +00:00
parent 4798f1e8f2
commit 4b56c7ff6c

View file

@ -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");