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_cache.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_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 114426e..b405d14 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -346,13 +346,15 @@ cache_enter(dvp, vp, cnp) /* * Name cache initialization, from vfs_init() when we are booting */ -void -nchinit() +static void +nchinit(void *dummy __unused) { TAILQ_INIT(&ncneg); - nchashtbl = hashinit(desiredvnodes*2, M_VFSCACHE, &nchash); + nchashtbl = hashinit(desiredvnodes * 2, M_VFSCACHE, &nchash); } +SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nchinit, NULL) + /* * Invalidate all entries to a particular vnode. |