aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/export.c13
1 files changed, 8 insertions, 5 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;