mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
mac: Remove uses of DEBUG_VFS_LOCKS
We can assert that a vnode lock is held whenever INVARIANTS is configured. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D51698
This commit is contained in:
parent
4b56c7ff6c
commit
2daaf63d53
2 changed files with 2 additions and 2 deletions
|
|
@ -488,7 +488,7 @@ void mac_sysvshm_init(struct shmid_kernel *);
|
|||
|
||||
void mac_thread_userret(struct thread *td);
|
||||
|
||||
#if defined(MAC) && defined(DEBUG_VFS_LOCKS)
|
||||
#if defined(MAC) && defined(INVARIANTS)
|
||||
void mac_vnode_assert_locked(struct vnode *vp, const char *func);
|
||||
#else
|
||||
#define mac_vnode_assert_locked(vp, func) do { } while (0)
|
||||
|
|
|
|||
|
|
@ -1078,7 +1078,7 @@ vn_setlabel(struct vnode *vp, struct label *intlabel, struct ucred *cred)
|
|||
return (0);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_VFS_LOCKS
|
||||
#ifdef INVARIANTS
|
||||
void
|
||||
mac_vnode_assert_locked(struct vnode *vp, const char *func)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue