diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-11-27 06:07:58 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-11-27 06:07:58 +0000 |
commit | adc108b87e4c1bc0bc3165e6588350f49580effd (patch) | |
tree | de86a60a5fd6205a5e7ff8dcab1a5a1e0db5734f | |
parent | 09361c79dd6d885cb5b63be5e75f50e9adc2e0b6 (diff) | |
download | FreeBSD-src-adc108b87e4c1bc0bc3165e6588350f49580effd.zip FreeBSD-src-adc108b87e4c1bc0bc3165e6588350f49580effd.tar.gz |
Take first active vnode correctly.
Reviewed by: kib
MFC after: 3 days
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
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 && |