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/unionfs/union_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/unionfs/union_vfsops.c') diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c index 53c5ae6..7f3d5bd 100644 --- a/sys/fs/unionfs/union_vfsops.c +++ b/sys/fs/unionfs/union_vfsops.c @@ -333,7 +333,7 @@ union_unmount(mp, mntflags, td) /* count #vnodes held on mount list */ mtx_lock(&mntvnode_mtx); n = 0; - LIST_FOREACH(vp, &mp->mnt_vnodelist, v_mntvnodes) + TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes) n++; mtx_unlock(&mntvnode_mtx); -- cgit v1.1