Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 06:07:58 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243599 - head/sys/kern
Message-ID:  <201211270607.qAR67w6O094153@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidxu
Date: Tue Nov 27 06:07:58 2012
New Revision: 243599
URL: http://svnweb.freebsd.org/changeset/base/243599

Log:
  Take first active vnode correctly.
  
  Reviewed by:	kib
  MFC after:	3 days

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Tue Nov 27 06:01:02 2012	(r243598)
+++ head/sys/kern/vfs_subr.c	Tue Nov 27 06:07:58 2012	(r243599)
@@ -4755,7 +4755,7 @@ __mnt_vnode_first_active(struct vnode **
 	MNT_REF(mp);
 	(*mvp)->v_type = VMARKER;
 
-	vp = TAILQ_NEXT(*mvp, v_actfreelist);
+	vp = TAILQ_FIRST(&mp->mnt_activevnodelist);
 	while (vp != NULL) {
 		VI_LOCK(vp);
 		if (vp->v_mount == mp && vp->v_type != VMARKER &&



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