Take first active vnode correctly.
Reviewed by: kib MFC after: 3 days
This commit is contained in:
parent
584295fca4
commit
3da9ab75f4
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user