diff options
author | peter <peter@FreeBSD.org> | 2000-12-06 07:09:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-12-06 07:09:08 +0000 |
commit | eb5dd3d06e8165ca67e70519b14c37d90a173e86 (patch) | |
tree | c0740ad19cf32403c4f9e0f00f243452668da9db /sys/kern/vfs_lookup.c | |
parent | a9b3c8ef131996f8a9c1e1642f58fa0e5b532673 (diff) | |
download | FreeBSD-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_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index b963a94..c95e020 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -43,6 +43,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> #include <sys/namei.h> #include <sys/vnode.h> #include <sys/mount.h> @@ -56,6 +57,19 @@ #include <vm/vm_zone.h> /* + * Allocation zone for namei + */ +struct vm_zone *namei_zone; + +static void +nameiinit(void *dummy __unused) +{ + + namei_zone = zinit("NAMEI", MAXPATHLEN, 0, 0, 2); +} +SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL) + +/* * Convert a pathname into a pointer to a locked inode. * * The FOLLOW flag is set when symbolic links are to be followed |