summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-11-27 06:07:58 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-11-27 06:07:58 +0000
commitadc108b87e4c1bc0bc3165e6588350f49580effd (patch)
treede86a60a5fd6205a5e7ff8dcab1a5a1e0db5734f /sys
parent09361c79dd6d885cb5b63be5e75f50e9adc2e0b6 (diff)
downloadFreeBSD-src-adc108b87e4c1bc0bc3165e6588350f49580effd.zip
FreeBSD-src-adc108b87e4c1bc0bc3165e6588350f49580effd.tar.gz
Take first active vnode correctly.
Reviewed by: kib MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 1c3c332..c2f5f93 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -4755,7 +4755,7 @@ __mnt_vnode_first_active(struct vnode **mvp, struct mount *mp)
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 &&
OpenPOWER on IntegriCloud