diff options
Diffstat (limited to 'fs/nfsd/nfsd.h')
-rw-r--r-- | fs/nfsd/nfsd.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h index 71ba60d36234..de23db255c69 100644 --- a/fs/nfsd/nfsd.h +++ b/fs/nfsd/nfsd.h | |||
@@ -55,7 +55,6 @@ extern struct svc_version nfsd_version2, nfsd_version3, | |||
55 | nfsd_version4; | 55 | nfsd_version4; |
56 | extern u32 nfsd_supported_minorversion; | 56 | extern u32 nfsd_supported_minorversion; |
57 | extern struct mutex nfsd_mutex; | 57 | extern struct mutex nfsd_mutex; |
58 | extern struct svc_serv *nfsd_serv; | ||
59 | extern spinlock_t nfsd_drc_lock; | 58 | extern spinlock_t nfsd_drc_lock; |
60 | extern unsigned int nfsd_drc_max_mem; | 59 | extern unsigned int nfsd_drc_max_mem; |
61 | extern unsigned int nfsd_drc_mem_used; | 60 | extern unsigned int nfsd_drc_mem_used; |
@@ -68,23 +67,14 @@ extern const struct seq_operations nfs_exports_op; | |||
68 | int nfsd_svc(int nrservs, struct net *net); | 67 | int nfsd_svc(int nrservs, struct net *net); |
69 | int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); | 68 | int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); |
70 | 69 | ||
71 | int nfsd_nrthreads(void); | 70 | int nfsd_nrthreads(struct net *); |
72 | int nfsd_nrpools(void); | 71 | int nfsd_nrpools(struct net *); |
73 | int nfsd_get_nrthreads(int n, int *); | 72 | int nfsd_get_nrthreads(int n, int *, struct net *); |
74 | int nfsd_set_nrthreads(int n, int *, struct net *); | 73 | int nfsd_set_nrthreads(int n, int *, struct net *); |
75 | int nfsd_pool_stats_open(struct inode *, struct file *); | 74 | int nfsd_pool_stats_open(struct inode *, struct file *); |
76 | int nfsd_pool_stats_release(struct inode *, struct file *); | 75 | int nfsd_pool_stats_release(struct inode *, struct file *); |
77 | 76 | ||
78 | static inline void nfsd_destroy(struct net *net) | 77 | void nfsd_destroy(struct net *net); |
79 | { | ||
80 | int destroy = (nfsd_serv->sv_nrthreads == 1); | ||
81 | |||
82 | if (destroy) | ||
83 | svc_shutdown_net(nfsd_serv, net); | ||
84 | svc_destroy(nfsd_serv); | ||
85 | if (destroy) | ||
86 | nfsd_serv = NULL; | ||
87 | } | ||
88 | 78 | ||
89 | #if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL) | 79 | #if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL) |
90 | #ifdef CONFIG_NFSD_V2_ACL | 80 | #ifdef CONFIG_NFSD_V2_ACL |