summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-11-01 04:36:50 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-11-01 04:36:50 +0000
commitb792e030799dd5cbb5c95c30f612a3176282491f (patch)
tree5255a548ae300c34491c9f84d5377d383de1341a
parent85bdc65a806da89b8c353656335ed6d5827d4888 (diff)
Notes
-rw-r--r--sys/fs/unionfs/union_vfsops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index dae39b580cc0..c3f04dc6f49e 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -351,11 +351,7 @@ union_unmount(mp, mntflags, td)
int n;
/* count #vnodes held on mount list */
- mtx_lock(&mntvnode_mtx);
- n = 0;
- TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes)
- n++;
- mtx_unlock(&mntvnode_mtx);
+ n = mp->mnt_nvnodelistsize;
/* if this is unchanged then stop */
if (n == freeing)