summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-04-01 10:45:32 +0000
committerpjd <pjd@FreeBSD.org>2007-04-01 10:45:32 +0000
commitc20a93a3456abbbbf22cf096edafe5cb40333087 (patch)
treee3258eff3085256a862646931e7225675f078f31 /sys
parenta9ed2a9332d237e502abcf1026c1c35fde1e2a10 (diff)
downloadFreeBSD-src-c20a93a3456abbbbf22cf096edafe5cb40333087.zip
FreeBSD-src-c20a93a3456abbbbf22cf096edafe5cb40333087.tar.gz
Now that the vdropl() function is public, assert that the vnode interlock
is held.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index d38f583..6f7d5ff 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2217,6 +2217,7 @@ void
vdropl(struct vnode *vp)
{
+ ASSERT_VI_LOCKED(vp, "vdropl");
if (vp->v_holdcnt <= 0)
panic("vdrop: holdcnt %d", vp->v_holdcnt);
vp->v_holdcnt--;
OpenPOWER on IntegriCloud