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_export.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_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 5042d28..8bfc501 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -244,8 +244,8 @@ static int vfs_hang_addrlist __P((struct mount *mp, struct netexport *nep, /* * Initialize the vnode management data structures. */ -void -vntblinit() +static void +vntblinit(void *dummy __unused) { desiredvnodes = maxproc + cnt.v_page_count / 4; @@ -263,6 +263,8 @@ vntblinit() &syncer_mask); syncer_maxdelay = syncer_mask + 1; } +SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL) + /* * Mark a mount point as busy. Used to synchronize access and to delay |