diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-01 04:36:50 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-11-01 04:36:50 +0000 |
| commit | b792e030799dd5cbb5c95c30f612a3176282491f (patch) | |
| tree | 5255a548ae300c34491c9f84d5377d383de1341a | |
| parent | 85bdc65a806da89b8c353656335ed6d5827d4888 (diff) | |
Notes
| -rw-r--r-- | sys/fs/unionfs/union_vfsops.c | 6 |
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) |
