summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-01-18 08:40:20 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-01-18 08:40:20 +0000
commit75e6236e2d75f997431f722835234cc7a730d1c0 (patch)
tree4d587f70b80241d56653aab3c3032d483cbe1a3a /sys/kern
parent612eaec6da12a80229bfb315e94b48b6cc25ccb4 (diff)
Clear mount operation argument flags from mnt_flag after mount.
OK bluhm@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 8eb03896e8e..6a3de4e47fe 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.339 2020/01/10 10:33:35 bluhm Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.340 2020/01/18 08:40:19 visa Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -258,8 +258,7 @@ update:
vput(vp);
if (mp->mnt_flag & MNT_WANTRDWR)
mp->mnt_flag &= ~MNT_RDONLY;
- mp->mnt_flag &=~
- (MNT_UPDATE | MNT_RELOAD | MNT_FORCE | MNT_WANTRDWR);
+ mp->mnt_flag &= ~MNT_OP_FLAGS;
if (error)
mp->mnt_flag = mntflag;
@@ -276,6 +275,7 @@ update:
goto fail;
}
+ mp->mnt_flag &= ~MNT_OP_FLAGS;
vp->v_mountedhere = mp;
/*