summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-28 20:21:04 +0000
committerphk <phk@FreeBSD.org>2004-07-28 20:21:04 +0000
commit075684f5fd95ff260b840fae30443cbffbf7cd0c (patch)
treebb9b337be34857e1f2678255e52c991d2c62a0a3 /sys/fs/msdosfs/msdosfs_vfsops.c
parent9507df06e35de2ec5980481ede329d5b2c0941d0 (diff)
downloadFreeBSD-src-075684f5fd95ff260b840fae30443cbffbf7cd0c.zip
FreeBSD-src-075684f5fd95ff260b840fae30443cbffbf7cd0c.tar.gz
Remove global variable rootdevs and rootvp, they are unused as such.
Add local rootvp variables as needed. Remove checks for miniroot's in the swappartition. We never did that and most of the filesystems could never be used for that, but it had still been copy&pasted all over the place.
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_vfsops.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index ee6c507..b54f6ec 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -326,7 +326,7 @@ mountmsdosfs(devvp, mp, td, argp)
error = vfs_mountedon(devvp);
if (error)
return (error);
- if (vcount(devvp) > 1 && devvp != rootvp)
+ if (vcount(devvp) > 1)
return (EBUSY);
vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td);
error = vinvalbuf(devvp, V_SAVE, td->td_ucred, td, 0, 0);
OpenPOWER on IntegriCloud