summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs/ntfs_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/ntfs/ntfs_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/ntfs/ntfs_vfsops.c')
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index 7db1a13..a9a9c7a 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -105,7 +105,7 @@ ntfs_mount (
{
size_t size;
int err = 0;
- struct vnode *devvp;
+ struct vnode *devvp, *rootvp;
struct ntfs_args args;
/*
@@ -289,7 +289,7 @@ ntfs_mountfs(devvp, mp, argsp, td)
ncount = vcount(devvp);
if (devvp->v_object)
ncount -= 1;
- if (ncount > 1 && devvp != rootvp)
+ if (ncount > 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