summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-01-03 21:03:20 +0000
committerkib <kib@FreeBSD.org>2012-01-03 21:03:20 +0000
commit0c5a3f31efc71beb9a4e0e208ad135288a8142a5 (patch)
tree17f16f6d5f31aebc722bd3cabdcd0e8db1484b16 /sys/fs
parent6d5201fff5de9848473516a5a44af10d3453890c (diff)
downloadFreeBSD-src-0c5a3f31efc71beb9a4e0e208ad135288a8142a5.zip
FreeBSD-src-0c5a3f31efc71beb9a4e0e208ad135288a8142a5.tar.gz
Document the state of the lowervp vnode for null_nodeget().
Tested by: pho MFC after: 1 week
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nullfs/null_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index a45ccf7..5af3971 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -198,6 +198,9 @@ null_nodeget(mp, lowervp, vpp)
struct vnode *vp;
int error;
+ ASSERT_VOP_LOCKED(lowervp, "lowervp");
+ KASSERT(lowervp->v_usecount >= 1, ("Unreferenced vnode %p\n", vp));
+
/* Lookup the hash firstly */
*vpp = null_hashget(mp, lowervp);
if (*vpp != NULL) {
OpenPOWER on IntegriCloud