Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 13:34:40 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229931 - stable/9/sys/fs/nullfs
Message-ID:  <201201101334.q0ADYeYT012505@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jan 10 13:34:39 2012
New Revision: 229931
URL: http://svn.freebsd.org/changeset/base/229931

Log:
  MFC r229428:
  Document the state of the lowervp vnode for null_nodeget().
  
  MFC r229600 (by dim):
  Output the correct vnode pointer.

Modified:
  stable/9/sys/fs/nullfs/null_subr.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/fs/nullfs/null_subr.c
==============================================================================
--- stable/9/sys/fs/nullfs/null_subr.c	Tue Jan 10 12:45:24 2012	(r229930)
+++ stable/9/sys/fs/nullfs/null_subr.c	Tue Jan 10 13:34:39 2012	(r229931)
@@ -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", lowervp));
+
 	/* 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?201201101334.q0ADYeYT012505>