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_gss | |
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_gss')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 068fa6dfb64e..8653a92144ae 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c | |||
@@ -64,7 +64,6 @@ static const struct rpc_credops gss_credops; | |||
64 | 64 | ||
65 | #define NFS_NGROUPS 16 | 65 | #define NFS_NGROUPS 16 |
66 | 66 | ||
67 | #define GSS_CRED_EXPIRE (60 * HZ) /* XXX: reasonable? */ | ||
68 | #define GSS_CRED_SLACK 1024 /* XXX: unused */ | 67 | #define GSS_CRED_SLACK 1024 /* XXX: unused */ |
69 | /* length of a krb5 verifier (48), plus data added before arguments when | 68 | /* length of a krb5 verifier (48), plus data added before arguments when |
70 | * using integrity (two 4-byte integers): */ | 69 | * using integrity (two 4-byte integers): */ |
@@ -643,7 +642,7 @@ gss_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor) | |||
643 | goto err_put_mech; | 642 | goto err_put_mech; |
644 | } | 643 | } |
645 | 644 | ||
646 | err = rpcauth_init_credcache(auth, GSS_CRED_EXPIRE); | 645 | err = rpcauth_init_credcache(auth); |
647 | if (err) | 646 | if (err) |
648 | goto err_unlink_pipe; | 647 | goto err_unlink_pipe; |
649 | 648 | ||