Take first active vnode correctly.

Reviewed by:	kib
MFC after:	3 days
This commit is contained in:
David Xu 2012-11-27 06:07:58 +00:00
parent 584295fca4
commit 3da9ab75f4

View File

@ -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 &&