diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-23 01:21:29 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-23 01:21:29 +0000 |
| commit | c72ccd014de73fd63ea50101bc509fbd889a7dd5 (patch) | |
| tree | 6c2bc2719e857145710103bb0268efdc6adaad5c /sys/ufs | |
| parent | 2716f76b14f17624d0c9c1343a75c8713bb21f5e (diff) | |
Notes
Diffstat (limited to 'sys/ufs')
| -rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 8 | ||||
| -rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 0f5188875d601..ad4c24d2f9cd1 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -476,12 +476,12 @@ ffs_reload(mp, cred, td) loop: mtx_lock(&mntvnode_mtx); - for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nvp) { + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nvp) { if (vp->v_mount != mp) { mtx_unlock(&mntvnode_mtx); goto loop; } - nvp = LIST_NEXT(vp, v_mntvnodes); + nvp = TAILQ_NEXT(vp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); /* * Step 4: invalidate all inactive vnodes. @@ -1008,14 +1008,14 @@ ffs_sync(mp, waitfor, cred, td) } mtx_lock(&mntvnode_mtx); loop: - for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nvp) { + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nvp) { /* * If the vnode that we are about to sync is no longer * associated with this mount point, start over. */ if (vp->v_mount != mp) goto loop; - nvp = LIST_NEXT(vp, v_mntvnodes); + nvp = TAILQ_NEXT(vp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); mtx_lock(&vp->v_interlock); diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index f1a5835cebe9d..7f8e6d8db8d23 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -439,10 +439,10 @@ quotaon(td, mp, type, fname) */ mtx_lock(&mntvnode_mtx); again: - for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nextvp) { + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nextvp) { if (vp->v_mount != mp) goto again; - nextvp = LIST_NEXT(vp, v_mntvnodes); + nextvp = TAILQ_NEXT(vp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); mtx_lock(&vp->v_interlock); @@ -460,7 +460,7 @@ again: mtx_lock(&mntvnode_mtx); if (error) break; - if (LIST_NEXT(vp, v_mntvnodes) != nextvp) + if (TAILQ_NEXT(vp, v_nmntvnodes) != nextvp) goto again; } mtx_unlock(&mntvnode_mtx); @@ -495,10 +495,10 @@ quotaoff(td, mp, type) */ mtx_lock(&mntvnode_mtx); again: - for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nextvp) { + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nextvp) { if (vp->v_mount != mp) goto again; - nextvp = LIST_NEXT(vp, v_mntvnodes); + nextvp = TAILQ_NEXT(vp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); mtx_lock(&vp->v_interlock); @@ -517,7 +517,7 @@ again: dqrele(vp, dq); vput(vp); mtx_lock(&mntvnode_mtx); - if (LIST_NEXT(vp, v_mntvnodes) != nextvp) + if (TAILQ_NEXT(vp, v_nmntvnodes) != nextvp) goto again; } mtx_unlock(&mntvnode_mtx); @@ -694,10 +694,10 @@ qsync(mp) */ mtx_lock(&mntvnode_mtx); again: - for (vp = LIST_FIRST(&mp->mnt_vnodelist); vp != NULL; vp = nextvp) { + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nextvp) { if (vp->v_mount != mp) goto again; - nextvp = LIST_NEXT(vp, v_mntvnodes); + nextvp = TAILQ_NEXT(vp, v_nmntvnodes); mtx_unlock(&mntvnode_mtx); mtx_lock(&vp->v_interlock); if (vp->v_type == VNON) { @@ -719,7 +719,7 @@ again: } vput(vp); mtx_lock(&mntvnode_mtx); - if (LIST_NEXT(vp, v_mntvnodes) != nextvp) + if (TAILQ_NEXT(vp, v_nmntvnodes) != nextvp) goto again; } mtx_unlock(&mntvnode_mtx); |
