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 /net/sunrpc/auth_unix.c | |
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 'net/sunrpc/auth_unix.c')
-rw-r--r-- | net/sunrpc/auth_unix.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index 205878a3caa5..d9c50d810d15 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c | |||
@@ -21,8 +21,6 @@ struct unx_cred { | |||
21 | }; | 21 | }; |
22 | #define uc_uid uc_base.cr_uid | 22 | #define uc_uid uc_base.cr_uid |
23 | 23 | ||
24 | #define UNX_CRED_EXPIRE (60 * HZ) | ||
25 | |||
26 | #define UNX_WRITESLACK (21 + (UNX_MAXNODENAME >> 2)) | 24 | #define UNX_WRITESLACK (21 + (UNX_MAXNODENAME >> 2)) |
27 | 25 | ||
28 | #ifdef RPC_DEBUG | 26 | #ifdef RPC_DEBUG |
@@ -38,8 +36,7 @@ unx_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor) | |||
38 | { | 36 | { |
39 | dprintk("RPC: creating UNIX authenticator for client %p\n", | 37 | dprintk("RPC: creating UNIX authenticator for client %p\n", |
40 | clnt); | 38 | clnt); |
41 | if (atomic_inc_return(&unix_auth.au_count) == 1) | 39 | atomic_inc(&unix_auth.au_count); |
42 | unix_cred_cache.nextgc = jiffies + (unix_cred_cache.expire >> 1); | ||
43 | return &unix_auth; | 40 | return &unix_auth; |
44 | } | 41 | } |
45 | 42 | ||
@@ -232,7 +229,6 @@ const struct rpc_authops authunix_ops = { | |||
232 | 229 | ||
233 | static | 230 | static |
234 | struct rpc_cred_cache unix_cred_cache = { | 231 | struct rpc_cred_cache unix_cred_cache = { |
235 | .expire = UNX_CRED_EXPIRE, | ||
236 | }; | 232 | }; |
237 | 233 | ||
238 | static | 234 | static |