diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-25 17:11:20 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:36 -0400 |
commit | f5c2187cfef628784d8a09b6d0f77888246d0c0f (patch) | |
tree | 8c648bb9210ea3bd24e6c5fe278951e47ff15faa /include | |
parent | 9499b4341b56935f61af9e7e354e7d11e70f5258 (diff) |
SUNRPC: Convert the credential garbage collector into a shrinker callback
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/auth.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index e5a3b5141ed2..7a69ca3bebaf 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h | |||
@@ -64,8 +64,6 @@ struct rpc_cred { | |||
64 | struct rpc_cred_cache { | 64 | struct rpc_cred_cache { |
65 | struct hlist_head hashtable[RPC_CREDCACHE_NR]; | 65 | struct hlist_head hashtable[RPC_CREDCACHE_NR]; |
66 | spinlock_t lock; | 66 | spinlock_t lock; |
67 | unsigned long nextgc; /* next garbage collection */ | ||
68 | unsigned long expire; /* cache expiry interval */ | ||
69 | }; | 67 | }; |
70 | 68 | ||
71 | struct rpc_authops; | 69 | struct rpc_authops; |
@@ -128,6 +126,8 @@ extern const struct rpc_authops authunix_ops; | |||
128 | extern const struct rpc_authops authnull_ops; | 126 | extern const struct rpc_authops authnull_ops; |
129 | 127 | ||
130 | void __init rpc_init_authunix(void); | 128 | void __init rpc_init_authunix(void); |
129 | void __init rpcauth_init_module(void); | ||
130 | void __exit rpcauth_remove_module(void); | ||
131 | 131 | ||
132 | int rpcauth_register(const struct rpc_authops *); | 132 | int rpcauth_register(const struct rpc_authops *); |
133 | int rpcauth_unregister(const struct rpc_authops *); | 133 | int rpcauth_unregister(const struct rpc_authops *); |
@@ -147,7 +147,7 @@ int rpcauth_unwrap_resp(struct rpc_task *task, kxdrproc_t decode, void *rqstp, | |||
147 | int rpcauth_refreshcred(struct rpc_task *); | 147 | int rpcauth_refreshcred(struct rpc_task *); |
148 | void rpcauth_invalcred(struct rpc_task *); | 148 | void rpcauth_invalcred(struct rpc_task *); |
149 | int rpcauth_uptodatecred(struct rpc_task *); | 149 | int rpcauth_uptodatecred(struct rpc_task *); |
150 | int rpcauth_init_credcache(struct rpc_auth *, unsigned long); | 150 | int rpcauth_init_credcache(struct rpc_auth *); |
151 | void rpcauth_destroy_credcache(struct rpc_auth *); | 151 | void rpcauth_destroy_credcache(struct rpc_auth *); |
152 | void rpcauth_clear_credcache(struct rpc_cred_cache *); | 152 | void rpcauth_clear_credcache(struct rpc_cred_cache *); |
153 | 153 | ||