summaryrefslogtreecommitdiff
path: root/sys/miscfs/nullfs/null_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/miscfs/nullfs/null_vfsops.c')
-rw-r--r--sys/miscfs/nullfs/null_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c
index a30f4a42c8a..6bb7921bfe6 100644
--- a/sys/miscfs/nullfs/null_vfsops.c
+++ b/sys/miscfs/nullfs/null_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: null_vfsops.c,v 1.17 2003/08/14 07:46:39 mickey Exp $ */
+/* $OpenBSD: null_vfsops.c,v 1.18 2004/03/03 06:01:49 tedu Exp $ */
/* $NetBSD: null_vfsops.c,v 1.38 2002/09/21 18:09:29 christos Exp $ */
/*
@@ -248,7 +248,7 @@ nullfs_unmount(mp, mntflags, p)
if (mntinvalbuf(mp, 1))
return (EBUSY);
#endif
- if (null_rootvp->v_usecount > 1)
+ if (null_rootvp->v_usecount > 1 && !(flags & FORCECLOSE))
return (EBUSY);
if ((error = vflush(mp, null_rootvp, flags)) != 0)
return (error);