Don't need nfs_vfs_reinit anymore since we don't resize tables anymore.

Move reinit code to init case.
This commit is contained in:
matt 2008-10-22 12:29:35 +00:00
parent f982353b74
commit b55adffee3
5 changed files with 12 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_node.c,v 1.105 2008/10/22 11:36:06 matt Exp $ */
/* $NetBSD: nfs_node.c,v 1.106 2008/10/22 12:29:35 matt Exp $ */
/*
* Copyright (c) 1989, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_node.c,v 1.105 2008/10/22 11:36:06 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_node.c,v 1.106 2008/10/22 12:29:35 matt Exp $");
#include "opt_nfs.h"
@ -79,7 +79,7 @@ static const struct genfs_ops nfs_genfsops = {
* Reinitialize inode hash table.
*/
void
nfs_node_reinit()
nfs_node_init()
{
malloc_type_attach(M_NFSNODE);
pool_init(&nfs_node_pool, sizeof(struct nfsnode), 0, 0, 0, "nfsnodepl",

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_subs.c,v 1.208 2008/10/22 11:36:06 matt Exp $ */
/* $NetBSD: nfs_subs.c,v 1.209 2008/10/22 12:29:35 matt Exp $ */
/*
* Copyright (c) 1989, 1993
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.208 2008/10/22 11:36:06 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.209 2008/10/22 12:29:35 matt Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@ -1590,16 +1590,11 @@ nfs_vfs_init()
/* Initialize NFS server / client shared data. */
nfs_init();
nfs_node_init();
nfs_commitsize = uvmexp.npages << (PAGE_SHIFT - 4);
}
void
nfs_vfs_reinit()
{
nfs_node_reinit();
}
void
nfs_vfs_done()
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_var.h,v 1.81 2008/10/22 11:36:06 matt Exp $ */
/* $NetBSD: nfs_var.h,v 1.82 2008/10/22 12:29:35 matt Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -83,7 +83,7 @@ void nfs_kqinit(void);
/* nfs_node.c */
void nfs_rbtinit(struct nfsmount *);
void nfs_node_reinit(void);
void nfs_node_init(void);
void nfs_node_done(void);
int nfs_nget1(struct mount *, nfsfh_t *, int, struct nfsnode **, int);

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_vfsops.c,v 1.202 2008/10/22 11:36:06 matt Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.203 2008/10/22 12:29:35 matt Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.202 2008/10/22 11:36:06 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.203 2008/10/22 12:29:35 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -116,7 +116,7 @@ struct vfsops nfs_vfsops = {
nfs_fhtovp,
nfs_vptofh,
nfs_vfs_init,
nfs_vfs_reinit,
NULL,
nfs_vfs_done,
nfs_mountroot,
(int (*)(struct mount *, struct vnode *, struct timespec *)) eopnotsupp,

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfsmount.h,v 1.47 2008/10/22 11:36:06 matt Exp $ */
/* $NetBSD: nfsmount.h,v 1.48 2008/10/22 12:29:35 matt Exp $ */
/*
* Copyright (c) 1989, 1993
@ -197,7 +197,6 @@ int nfs_fsinfo __P((struct nfsmount *, struct vnode *, kauth_cred_t,
struct lwp *));
void nfs_vfs_init __P((void));
void nfs_vfs_reinit __P((void));
void nfs_vfs_done __P((void));
#endif /* _KERNEL */