diff options
author | pjd <pjd@FreeBSD.org> | 2008-07-27 11:48:15 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-07-27 11:48:15 +0000 |
commit | 3f1807709d7cfe3766d846df960fb657feef0ffb (patch) | |
tree | 785e62dbc4aa36b55311b4b61bb197a1f3b339f2 /sys/kern/vfs_subr.c | |
parent | 4dd19696a7df7d5a2ba853c021b68dfe52ebbe5a (diff) | |
download | FreeBSD-src-3f1807709d7cfe3766d846df960fb657feef0ffb.zip FreeBSD-src-3f1807709d7cfe3766d846df960fb657feef0ffb.tar.gz |
Assert for exclusive vnode lock in vinactive(), vrecycle() and vgonel()
functions.
Reviewed by: kib
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 7665d79..478ec3b 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2282,7 +2282,7 @@ static void vinactive(struct vnode *vp, struct thread *td) { - ASSERT_VOP_LOCKED(vp, "vinactive"); + ASSERT_VOP_ELOCKED(vp, "vinactive"); ASSERT_VI_LOCKED(vp, "vinactive"); VNASSERT((vp->v_iflag & VI_DOINGINACT) == 0, vp, ("vinactive: recursed on VI_DOINGINACT")); @@ -2439,7 +2439,7 @@ vrecycle(struct vnode *vp, struct thread *td) { int recycled; - ASSERT_VOP_LOCKED(vp, "vrecycle"); + ASSERT_VOP_ELOCKED(vp, "vrecycle"); recycled = 0; VI_LOCK(vp); if (vp->v_usecount == 0) { @@ -2474,7 +2474,7 @@ vgonel(struct vnode *vp) struct mount *mp; CTR1(KTR_VFS, "vgonel: vp %p", vp); - ASSERT_VOP_LOCKED(vp, "vgonel"); + ASSERT_VOP_ELOCKED(vp, "vgonel"); ASSERT_VI_LOCKED(vp, "vgonel"); VNASSERT(vp->v_holdcnt, vp, ("vgonel: vp %p has no reference.", vp)); |