nfsd: Get rid of useless "pool" field in nfs_fha_new.c
Since svcpool_create() is now called from an initialization function, the pool field of fha_params is always non-NULL, so just get rid of it and the useless check for it being NULL. MFC after: 3 months
This commit is contained in:
parent
545c5c4076
commit
b99c419587
@ -62,8 +62,6 @@ SYSCTL_DECL(_vfs_nfsd);
|
||||
|
||||
extern int newnfs_nfsv3_procid[];
|
||||
|
||||
NFSD_VNET_DECLARE(SVCPOOL *, nfsrvd_pool);
|
||||
|
||||
SYSINIT(nfs_fhanew, SI_SUB_ROOT_CONF, SI_ORDER_ANY, fhanew_init, NULL);
|
||||
SYSUNINIT(nfs_fhanew, SI_SUB_ROOT_CONF, SI_ORDER_ANY, fhanew_uninit, NULL);
|
||||
|
||||
@ -80,8 +78,6 @@ fhanew_init(void *foo)
|
||||
snprintf(softc->server_name, sizeof(softc->server_name),
|
||||
FHANEW_SERVER_NAME);
|
||||
|
||||
softc->pool = &NFSD_VNET(nfsrvd_pool);
|
||||
|
||||
/*
|
||||
* Initialize the sysctl context list for the fha module.
|
||||
*/
|
||||
@ -656,11 +652,6 @@ fhenew_stats_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
sbuf_new(&sb, NULL, 65536, SBUF_FIXEDLEN);
|
||||
|
||||
if (!*softc->pool) {
|
||||
sbuf_printf(&sb, "NFSD not running\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
for (i = 0; i < FHA_HASH_SIZE; i++)
|
||||
if (!LIST_EMPTY(&softc->fha_hash[i].list))
|
||||
break;
|
||||
|
@ -99,7 +99,6 @@ struct fha_params {
|
||||
struct sysctl_oid *sysctl_tree;
|
||||
struct fha_ctls ctls;
|
||||
char server_name[32];
|
||||
SVCPOOL **pool;
|
||||
};
|
||||
|
||||
SVCTHREAD *fhanew_assign(SVCTHREAD *this_thread, struct svc_req *req);
|
||||
|
Loading…
Reference in New Issue
Block a user