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/msdosfs/msdosfs_vfsops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/fs/msdosfs/msdosfs_vfsops.c') diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index cd1e404..ca5a9ca 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -176,7 +176,7 @@ msdosfs_mountroot() mp = malloc((u_long)sizeof(struct mount), M_MOUNT, M_WAITOK | M_ZERO); mp->mnt_op = &msdosfs_vfsops; mp->mnt_flag = 0; - LIST_INIT(&mp->mnt_vnodelist); + TAILQ_INIT(&mp->mnt_nvnodelist); args.flags = 0; args.uid = 0; @@ -859,14 +859,14 @@ msdosfs_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); -- cgit v1.1