summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_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/gnu/ext2fs/ext2_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/gnu/ext2fs/ext2_vfsops.c')
-rw-r--r--sys/gnu/ext2fs/ext2_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c
index b688236..73207d5 100644
--- a/sys/gnu/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/ext2fs/ext2_vfsops.c
@@ -117,6 +117,7 @@ ext2_mountroot()
{
struct ext2_sb_info *fs;
struct mount *mp;
+ struct vnode *rootvp;
struct thread *td = curthread;
struct ext2mount *ump;
u_int size;
@@ -642,7 +643,7 @@ ext2_mountfs(devvp, mp, td)
*/
if ((error = vfs_mountedon(devvp)) != 0)
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