diff options
| -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) |
