Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 21:03:21 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229428 - head/sys/fs/nullfs
Message-ID:  <201201032103.q03L3Lan043029@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jan  3 21:03:20 2012
New Revision: 229428
URL: http://svn.freebsd.org/changeset/base/229428

Log:
  Document the state of the lowervp vnode for null_nodeget().
  
  Tested by:	pho
  MFC after:	1 week

Modified:
  head/sys/fs/nullfs/null_subr.c

Modified: head/sys/fs/nullfs/null_subr.c
==============================================================================
--- head/sys/fs/nullfs/null_subr.c	Tue Jan  3 20:53:58 2012	(r229427)
+++ head/sys/fs/nullfs/null_subr.c	Tue Jan  3 21:03:20 2012	(r229428)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201032103.q03L3Lan043029>