summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-12-06 07:09:08 +0000
committerpeter <peter@FreeBSD.org>2000-12-06 07:09:08 +0000
commiteb5dd3d06e8165ca67e70519b14c37d90a173e86 (patch)
treec0740ad19cf32403c4f9e0f00f243452668da9db /sys/kern/vfs_init.c
parenta9b3c8ef131996f8a9c1e1642f58fa0e5b532673 (diff)
downloadFreeBSD-src-eb5dd3d06e8165ca67e70519b14c37d90a173e86.zip
FreeBSD-src-eb5dd3d06e8165ca67e70519b14c37d90a173e86.tar.gz
Untangle vfsinit() a bit. Use seperate sysinit functions rather than
having a super-function calling bits all over the place.
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index d0fff71..3a053cf 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -53,15 +53,9 @@
MALLOC_DEFINE(M_VNODE, "vnodes", "Dynamically allocated vnodes");
/*
- * Zone for namei
+ * The highest defined VFS number.
*/
-struct vm_zone *namei_zone;
-
-/*
- * vfs_init() will set maxvfsconf
- * to the highest defined type number.
- */
-int maxvfsconf;
+int maxvfsconf = VFS_GENERIC + 1;
struct vfsconf *vfsconf;
/*
@@ -304,22 +298,7 @@ static void
vfsinit(void *dummy)
{
- namei_zone = zinit("NAMEI", MAXPATHLEN, 0, 0, 2);
-
- /*
- * Initialize the vnode table
- */
- vntblinit();
- /*
- * Initialize the vnode name cache
- */
- nchinit();
- /*
- * Initialize each file system type.
- * Vfs type numbers must be distinct from VFS_GENERIC (and VFS_VFSCONF).
- */
vattr_null(&va_null);
- maxvfsconf = VFS_GENERIC + 1;
}
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL)
OpenPOWER on IntegriCloud