mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
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:
parent
4798f1e8f2
commit
4b56c7ff6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue