summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-12-06 07:09:08 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-12-06 07:09:08 +0000
commit138e514cb5fda28c7690adcc9c240020d7ec4912 (patch)
tree173a6d98d99bf59db783d2d263fafe9611839224 /sys/kern/vfs_init.c
parent7ca7bbb36bd9fff6943d8c0569d4ec6c959b5a7f (diff)
Notes
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 d0fff71b0045..3a053cfb2b61 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)