summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2006-09-26 04:15:04 +0000
committerTor Egge <tegge@FreeBSD.org>2006-09-26 04:15:04 +0000
commitcea9d840d8ccac1220190eb69b03087cd2c947bd (patch)
tree62600e9c42382f8a52c2736bf5e0e5f37dd08829
parent5da56ddb21063670827f5b998dbd968005fba920 (diff)
Notes
-rw-r--r--sys/kern/vfs_mount.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 1e4cf6d3145d..f99b0832a33b 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -790,7 +790,7 @@ vfs_domount(
struct mount *mp;
struct vfsconf *vfsp;
struct export_args export;
- int error, flag = 0, kern_flag = 0;
+ int error, flag = 0;
struct vattr va;
struct nameidata nd;
@@ -852,7 +852,6 @@ vfs_domount(
mp = vp->v_mount;
MNT_ILOCK(mp);
flag = mp->mnt_flag;
- kern_flag = mp->mnt_kern_flag;
/*
* We only allow the filesystem to be reloaded if it
* is currently mounted read-only.
@@ -980,10 +979,8 @@ vfs_domount(
MNT_ILOCK(mp);
mp->mnt_flag &=
~(MNT_UPDATE | MNT_RELOAD | MNT_FORCE | MNT_SNAPSHOT);
- if (error) {
+ if (error)
mp->mnt_flag = flag;
- mp->mnt_kern_flag = kern_flag;
- }
MNT_IUNLOCK(mp);
if ((mp->mnt_flag & MNT_RDONLY) == 0) {
if (mp->mnt_syncer == NULL)