summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660
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/isofs/cd9660
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/isofs/cd9660')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 10e3bc4..7c83449 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -144,6 +144,7 @@ iso_mountroot(mp, td)
struct thread *td;
{
struct iso_args args;
+ struct vnode *rootvp;
int error;
if ((error = bdevvp(rootdev, &rootvp))) {
@@ -297,7 +298,7 @@ iso_mountfs(devvp, mp, td, argp)
*/
if ((error = vfs_mountedon(devvp)))
return error;
- if (vcount(devvp) > 1 && devvp != rootvp)
+ if (vcount(devvp) > 1)
return EBUSY;
if ((error = vinvalbuf(devvp, V_SAVE, td->td_ucred, td, 0, 0)))
return (error);
OpenPOWER on IntegriCloud