summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-03-16 18:31:00 +0000
committerwollman <wollman@FreeBSD.org>1995-03-16 18:31:00 +0000
commit27511388bbecafdc30d39a6a64bbd27849f079e4 (patch)
tree0260dfbbc460b5ea4b2af2dc0d7d243ad3c1d7fe
parent85811050d4a4f9ff842736079083258656f77d20 (diff)
downloadFreeBSD-src-27511388bbecafdc30d39a6a64bbd27849f079e4.zip
FreeBSD-src-27511388bbecafdc30d39a6a64bbd27849f079e4.tar.gz
Statically-compiled filesystems now use a VFCF_STATIC flag rather than
abusing the refcount.
-rw-r--r--sys/sys/mount.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 1801475..3409c84 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mount.h 8.13 (Berkeley) 3/27/94
- * $Id: mount.h,v 1.12 1994/10/20 00:48:21 wollman Exp $
+ * $Id: mount.h,v 1.13 1995/03/16 18:16:20 bde Exp $
*/
#ifndef _SYS_MOUNT_H_
@@ -203,6 +203,8 @@ struct vfsconf {
int vfc_flags;
};
+#define VFCF_STATIC 1 /* FS is statically compiled into kernel */
+
/*
* Operations supported on mounted file system.
*/
@@ -262,7 +264,7 @@ struct vfsops {
#include <sys/lkm.h>
#define VFS_SET(vfsops, fsname, index, flags) \
- static struct vfsconf _fs_vfsops = { \
+ static struct vfsconf _fs_vfsconf = { \
&vfsops, \
#fsname, \
index, \
@@ -270,21 +272,21 @@ struct vfsops {
flags \
}; \
extern struct linker_set MODVNOPS; \
- MOD_VFS(#fsname,index,&MODVNOPS,&_fs_vfsops); \
+ MOD_VFS(#fsname,index,&MODVNOPS,&_fs_vfsconf); \
int \
fsname ## _mod(struct lkm_table *lkmtp, int cmd, int ver) { \
DISPATCH(lkmtp, cmd, ver, nosys, nosys, nosys); }
#else
#define VFS_SET(vfsops, fsname, index, flags) \
- static struct vfsconf _fs_vfsops = { \
+ static struct vfsconf _fs_vfsconf = { \
&vfsops, \
#fsname, \
index, \
- 1, \
- flags \
+ 0, \
+ flags | VFCF_STATIC \
}; \
- DATA_SET(vfs_set,_fs_vfsops)
+ DATA_SET(vfs_set,_fs_vfsconf)
#endif /* VFS_LKM */
#endif /* KERNEL */
OpenPOWER on IntegriCloud