aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2001-10-25 19:18:55 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2001-10-25 19:18:55 +0000
commit215cc5a5bfe21111e0dad8d9dabb4b44cb96021b (patch)
tree7f09191ab9347fc244c0bec4d6a49cdc032b8b29 /sys/miscfs
parentedf4589fe68a1581a917fdbd05fac52021e24f86 (diff)
Notes
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/union/union_vfsops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index bf4ae72d0df9..b783ad1ad37c 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -336,10 +336,11 @@ union_unmount(mp, mntflags, p)
int n;
/* count #vnodes held on mount list */
- for (n = 0, vp = mp->mnt_vnodelist.lh_first;
- vp != NULLVP;
- vp = vp->v_mntvnodes.le_next)
+ for (n = 0, vp = TAILQ_FIRST(&mp->mnt_nvnodelist);
+ vp != NULLVP;
+ vp = TAILQ_NEXT(vp, v_nmntvnodes)) {
n++;
+ }
/* if this is unchanged then stop */
if (n == freeing)