diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-08-16 18:06:09 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-08-23 00:32:07 +0200 |
commit | a26dd64f5477968d730cf92868b4092314b8e45e (patch) | |
tree | d01052a0ea3958cb88210aebfc906ff8d651de40 /fs/nfsd/nfs4callback.c | |
parent | nfsd: Use correct credential for NFSv4.0 callback with GSS (diff) | |
download | linux-a26dd64f5477968d730cf92868b4092314b8e45e.tar.xz linux-a26dd64f5477968d730cf92868b4092314b8e45e.zip |
nfsd: Remove callback_cred
Clean up: The global callback_cred is no longer used, so it can be
removed.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index ba8e902ec4ad..601bf33c26a0 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -746,26 +746,6 @@ static int max_cb_time(struct net *net) return max(nn->nfsd4_lease/10, (time_t)1) * HZ; } -static struct rpc_cred *callback_cred; - -int set_callback_cred(void) -{ - if (callback_cred) - return 0; - callback_cred = rpc_lookup_machine_cred("nfs"); - if (!callback_cred) - return -ENOMEM; - return 0; -} - -void cleanup_callback_cred(void) -{ - if (callback_cred) { - put_rpccred(callback_cred); - callback_cred = NULL; - } -} - static struct rpc_cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, struct nfsd4_session *ses) { if (clp->cl_minorversion == 0) { |