aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/export.c13
-rw-r--r--include/linux/nfsd/export.h5
-rw-r--r--include/linux/sunrpc/cache.h1
-rw-r--r--net/sunrpc/cache.c2
-rw-r--r--net/sunrpc/sunrpc_syms.c1
5 files changed, 10 insertions, 12 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index cc811a1094cb..c340be0a3f59 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -57,7 +57,7 @@ static int exp_verify_string(char *cp, int max);
57#define EXPKEY_HASHMASK (EXPKEY_HASHMAX -1) 57#define EXPKEY_HASHMASK (EXPKEY_HASHMAX -1)
58static struct cache_head *expkey_table[EXPKEY_HASHMAX]; 58static struct cache_head *expkey_table[EXPKEY_HASHMAX];
59 59
60void expkey_put(struct kref *ref) 60static void expkey_put(struct kref *ref)
61{ 61{
62 struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref); 62 struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref);
63 63
@@ -87,6 +87,8 @@ static void expkey_request(struct cache_detail *cd,
87 87
88static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old); 88static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old);
89static struct svc_expkey *svc_expkey_lookup(struct svc_expkey *); 89static struct svc_expkey *svc_expkey_lookup(struct svc_expkey *);
90static struct cache_detail svc_expkey_cache;
91
90static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) 92static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
91{ 93{
92 /* client fsidtype fsid [path] */ 94 /* client fsidtype fsid [path] */
@@ -255,7 +257,7 @@ static struct cache_head *expkey_alloc(void)
255 return NULL; 257 return NULL;
256} 258}
257 259
258struct cache_detail svc_expkey_cache = { 260static struct cache_detail svc_expkey_cache = {
259 .owner = THIS_MODULE, 261 .owner = THIS_MODULE,
260 .hash_size = EXPKEY_HASHMAX, 262 .hash_size = EXPKEY_HASHMAX,
261 .hash_table = expkey_table, 263 .hash_table = expkey_table,
@@ -345,7 +347,8 @@ static void svc_export_request(struct cache_detail *cd,
345 (*bpp)[-1] = '\n'; 347 (*bpp)[-1] = '\n';
346} 348}
347 349
348struct svc_export *svc_export_update(struct svc_export *new, struct svc_export *old); 350static struct svc_export *svc_export_update(struct svc_export *new,
351 struct svc_export *old);
349static struct svc_export *svc_export_lookup(struct svc_export *); 352static struct svc_export *svc_export_lookup(struct svc_export *);
350 353
351static int check_export(struct inode *inode, int flags) 354static int check_export(struct inode *inode, int flags)
@@ -574,7 +577,7 @@ svc_export_lookup(struct svc_export *exp)
574 return NULL; 577 return NULL;
575} 578}
576 579
577struct svc_export * 580static struct svc_export *
578svc_export_update(struct svc_export *new, struct svc_export *old) 581svc_export_update(struct svc_export *new, struct svc_export *old)
579{ 582{
580 struct cache_head *ch; 583 struct cache_head *ch;
@@ -593,7 +596,7 @@ svc_export_update(struct svc_export *new, struct svc_export *old)
593} 596}
594 597
595 598
596struct svc_expkey * 599static struct svc_expkey *
597exp_find_key(svc_client *clp, int fsid_type, u32 *fsidv, struct cache_req *reqp) 600exp_find_key(svc_client *clp, int fsid_type, u32 *fsidv, struct cache_req *reqp)
598{ 601{
599 struct svc_expkey key, *ek; 602 struct svc_expkey key, *ek;
diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h
index a6c08a47b25c..d2a8abb5011a 100644
--- a/include/linux/nfsd/export.h
+++ b/include/linux/nfsd/export.h
@@ -86,9 +86,6 @@ void nfsd_export_shutdown(void);
86void nfsd_export_flush(void); 86void nfsd_export_flush(void);
87void exp_readlock(void); 87void exp_readlock(void);
88void exp_readunlock(void); 88void exp_readunlock(void);
89struct svc_expkey * exp_find_key(struct auth_domain *clp,
90 int fsid_type, u32 *fsidv,
91 struct cache_req *reqp);
92struct svc_export * exp_get_by_name(struct auth_domain *clp, 89struct svc_export * exp_get_by_name(struct auth_domain *clp,
93 struct vfsmount *mnt, 90 struct vfsmount *mnt,
94 struct dentry *dentry, 91 struct dentry *dentry,
@@ -102,7 +99,7 @@ int exp_rootfh(struct auth_domain *,
102int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq); 99int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq);
103int nfserrno(int errno); 100int nfserrno(int errno);
104 101
105extern struct cache_detail svc_export_cache, svc_expkey_cache; 102extern struct cache_detail svc_export_cache;
106 103
107static inline void exp_put(struct svc_export *exp) 104static inline void exp_put(struct svc_export *exp)
108{ 105{
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h
index ad3f5cbdb770..b5612c958cce 100644
--- a/include/linux/sunrpc/cache.h
+++ b/include/linux/sunrpc/cache.h
@@ -163,7 +163,6 @@ static inline void cache_put(struct cache_head *h, struct cache_detail *cd)
163 kref_put(&h->ref, cd->cache_put); 163 kref_put(&h->ref, cd->cache_put);
164} 164}
165 165
166extern void cache_init(struct cache_head *h);
167extern int cache_check(struct cache_detail *detail, 166extern int cache_check(struct cache_detail *detail,
168 struct cache_head *h, struct cache_req *rqstp); 167 struct cache_head *h, struct cache_req *rqstp);
169extern void cache_flush(void); 168extern void cache_flush(void);
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index dd81e5928172..3ac4193a78ed 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -37,7 +37,7 @@
37static void cache_defer_req(struct cache_req *req, struct cache_head *item); 37static void cache_defer_req(struct cache_req *req, struct cache_head *item);
38static void cache_revisit_request(struct cache_head *item); 38static void cache_revisit_request(struct cache_head *item);
39 39
40void cache_init(struct cache_head *h) 40static void cache_init(struct cache_head *h)
41{ 41{
42 time_t now = get_seconds(); 42 time_t now = get_seconds();
43 h->next = NULL; 43 h->next = NULL;
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index 69b8238f3d10..769114f0f886 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -105,7 +105,6 @@ EXPORT_SYMBOL(auth_unix_lookup);
105EXPORT_SYMBOL(cache_check); 105EXPORT_SYMBOL(cache_check);
106EXPORT_SYMBOL(cache_flush); 106EXPORT_SYMBOL(cache_flush);
107EXPORT_SYMBOL(cache_purge); 107EXPORT_SYMBOL(cache_purge);
108EXPORT_SYMBOL(cache_init);
109EXPORT_SYMBOL(cache_register); 108EXPORT_SYMBOL(cache_register);
110EXPORT_SYMBOL(cache_unregister); 109EXPORT_SYMBOL(cache_unregister);
111EXPORT_SYMBOL(qword_add); 110EXPORT_SYMBOL(qword_add);