summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 6eb8964..8aa9f9c 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -138,7 +138,7 @@ ffs_mount(struct mount *mp)
struct ufsmount *ump = 0;
struct fs *fs;
int error, flags;
- u_int mntorflags, mntandnotflags;
+ u_int mntorflags;
accmode_t accmode;
struct nameidata ndp;
char *fspec;
@@ -163,7 +163,6 @@ ffs_mount(struct mount *mp)
return (error);
mntorflags = 0;
- mntandnotflags = 0;
if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0)
mntorflags |= MNT_ACLS;
@@ -187,7 +186,7 @@ ffs_mount(struct mount *mp)
}
MNT_ILOCK(mp);
- mp->mnt_flag = (mp->mnt_flag | mntorflags) & ~mntandnotflags;
+ mp->mnt_flag |= mntorflags;
MNT_IUNLOCK(mp);
/*
* If updating, check whether changing from read-only to
OpenPOWER on IntegriCloud