diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/export.c | 13 |
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) |
58 | static struct cache_head *expkey_table[EXPKEY_HASHMAX]; | 58 | static struct cache_head *expkey_table[EXPKEY_HASHMAX]; |
59 | 59 | ||
60 | void expkey_put(struct kref *ref) | 60 | static 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 | ||
88 | static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old); | 88 | static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old); |
89 | static struct svc_expkey *svc_expkey_lookup(struct svc_expkey *); | 89 | static struct svc_expkey *svc_expkey_lookup(struct svc_expkey *); |
90 | static struct cache_detail svc_expkey_cache; | ||
91 | |||
90 | static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) | 92 | static 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 | ||
258 | struct cache_detail svc_expkey_cache = { | 260 | static 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 | ||
348 | struct svc_export *svc_export_update(struct svc_export *new, struct svc_export *old); | 350 | static struct svc_export *svc_export_update(struct svc_export *new, |
351 | struct svc_export *old); | ||
349 | static struct svc_export *svc_export_lookup(struct svc_export *); | 352 | static struct svc_export *svc_export_lookup(struct svc_export *); |
350 | 353 | ||
351 | static int check_export(struct inode *inode, int flags) | 354 | static 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 | ||
577 | struct svc_export * | 580 | static struct svc_export * |
578 | svc_export_update(struct svc_export *new, struct svc_export *old) | 581 | svc_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 | ||
596 | struct svc_expkey * | 599 | static struct svc_expkey * |
597 | exp_find_key(svc_client *clp, int fsid_type, u32 *fsidv, struct cache_req *reqp) | 600 | exp_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; |