summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-11-12 05:42:33 +0000
committerjulian <julian@FreeBSD.org>1997-11-12 05:42:33 +0000
commitae22df605c505c7004dbd0315e0c8a69837113ac (patch)
treec92335bedfadb094a99ac0f1f934ff8b75ad8f50 /sys/kern/vfs_subr.c
parent88e48b4b98e11a59cad7cf68de7887e54bc94a5b (diff)
downloadFreeBSD-src-ae22df605c505c7004dbd0315e0c8a69837113ac.zip
FreeBSD-src-ae22df605c505c7004dbd0315e0c8a69837113ac.tar.gz
Reviewed by: various.
Ever since I first say the way the mount flags were used I've hated the fact that modes, and events, internal and exported, and short-term and long term flags are all thrown together. Finally it's annoyed me enough.. This patch to the entire FreeBSD tree adds a second mount flag word to the mount struct. it is not exported to userspace. I have moved some of the non exported flags over to this word. this means that we now have 8 free bits in the mount flags. There are another two that might well move over, but which I'm not sure about. The only user visible change would have been in pstat -v, except that davidg has disabled it anyhow. I'd still like to move the state flags and the 'command' flags apart from each other.. e.g. MNT_FORCE really doesn't have the same semantics as MNT_RDONLY, but that's left for another day.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 412bb88..5b5d3ca 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.111 1997/10/26 20:55:07 phk Exp $
+ * $Id: vfs_subr.c,v 1.112 1997/11/07 08:53:11 phk Exp $
*/
/*
@@ -147,10 +147,10 @@ vfs_busy(mp, flags, interlkp, p)
{
int lkflags;
- if (mp->mnt_flag & MNT_UNMOUNT) {
+ if (mp->mnt_kern_flag & MNTK_UNMOUNT) {
if (flags & LK_NOWAIT)
return (ENOENT);
- mp->mnt_flag |= MNT_MWAIT;
+ mp->mnt_kern_flag |= MNTK_MWAIT;
if (interlkp) {
simple_unlock(interlkp);
}
OpenPOWER on IntegriCloud