diff options
| -rw-r--r-- | fs/nfsd/export.c | 13 | ||||
| -rw-r--r-- | include/linux/nfsd/export.h | 5 | ||||
| -rw-r--r-- | include/linux/sunrpc/cache.h | 1 | ||||
| -rw-r--r-- | net/sunrpc/cache.c | 2 | ||||
| -rw-r--r-- | net/sunrpc/sunrpc_syms.c | 1 |
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) |
| 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; |
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); | |||
| 86 | void nfsd_export_flush(void); | 86 | void nfsd_export_flush(void); |
| 87 | void exp_readlock(void); | 87 | void exp_readlock(void); |
| 88 | void exp_readunlock(void); | 88 | void exp_readunlock(void); |
| 89 | struct svc_expkey * exp_find_key(struct auth_domain *clp, | ||
| 90 | int fsid_type, u32 *fsidv, | ||
| 91 | struct cache_req *reqp); | ||
| 92 | struct svc_export * exp_get_by_name(struct auth_domain *clp, | 89 | struct 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 *, | |||
| 102 | int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq); | 99 | int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq); |
| 103 | int nfserrno(int errno); | 100 | int nfserrno(int errno); |
| 104 | 101 | ||
| 105 | extern struct cache_detail svc_export_cache, svc_expkey_cache; | 102 | extern struct cache_detail svc_export_cache; |
| 106 | 103 | ||
| 107 | static inline void exp_put(struct svc_export *exp) | 104 | static 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 | ||
| 166 | extern void cache_init(struct cache_head *h); | ||
| 167 | extern int cache_check(struct cache_detail *detail, | 166 | extern 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); |
| 169 | extern void cache_flush(void); | 168 | extern 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 @@ | |||
| 37 | static void cache_defer_req(struct cache_req *req, struct cache_head *item); | 37 | static void cache_defer_req(struct cache_req *req, struct cache_head *item); |
| 38 | static void cache_revisit_request(struct cache_head *item); | 38 | static void cache_revisit_request(struct cache_head *item); |
| 39 | 39 | ||
| 40 | void cache_init(struct cache_head *h) | 40 | static 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); | |||
| 105 | EXPORT_SYMBOL(cache_check); | 105 | EXPORT_SYMBOL(cache_check); |
| 106 | EXPORT_SYMBOL(cache_flush); | 106 | EXPORT_SYMBOL(cache_flush); |
| 107 | EXPORT_SYMBOL(cache_purge); | 107 | EXPORT_SYMBOL(cache_purge); |
| 108 | EXPORT_SYMBOL(cache_init); | ||
| 109 | EXPORT_SYMBOL(cache_register); | 108 | EXPORT_SYMBOL(cache_register); |
| 110 | EXPORT_SYMBOL(cache_unregister); | 109 | EXPORT_SYMBOL(cache_unregister); |
| 111 | EXPORT_SYMBOL(qword_add); | 110 | EXPORT_SYMBOL(qword_add); |
