From 45a6fabe87ae3342c49f2e351d044e60daf8dfb3 Mon Sep 17 00:00:00 2001 From: dillon Date: Tue, 23 Oct 2001 01:21:29 +0000 Subject: Change the vnode list under the mount point from a LIST to a TAILQ in preparation for an implementation of limiting code for kern.maxvnodes. MFC after: 3 days --- sys/fs/nwfs/nwfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/fs/nwfs') diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c index de5ae2f..119a163 100644 --- a/sys/fs/nwfs/nwfs_vfsops.c +++ b/sys/fs/nwfs/nwfs_vfsops.c @@ -479,7 +479,7 @@ nwfs_sync(mp, waitfor, cred, td) */ mtx_lock(&mntvnode_mtx); loop: - for (vp = LIST_FIRST(&mp->mnt_vnodelist); + for (vp = TAILQ_FIRST(&mp->mnt_nvnodelist); vp != NULL; vp = nvp) { /* @@ -488,7 +488,7 @@ loop: */ 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); if (VOP_ISLOCKED(vp, NULL) || TAILQ_EMPTY(&vp->v_dirtyblkhd) || -- cgit v1.1