Off by one error.

Submitted by:	des
This commit is contained in:
Poul-Henning Kamp 2000-09-04 18:24:30 +00:00
parent 9acf7ab9bc
commit 7665e72021
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65447

View File

@ -132,7 +132,7 @@ devfs_unmount(mp, mntflags, p)
fmp = VFSTODEVFS(mp);
if (mntflags & MNT_FORCE)
flags |= FORCECLOSE;
if (rootvp->v_usecount > 2)
if (rootvp->v_usecount > 1)
return (EBUSY);
devfs_purge(fmp->dm_rootdir);
error = vflush(mp, rootvp, flags);