]> err.no Git - linux-2.6/commitdiff
SUNRPC: Rename rpcauth_destroy() to rpcauth_release()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Jun 2007 14:46:47 +0000 (10:46 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:34 +0000 (23:40 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/auth.h
net/sunrpc/auth.c
net/sunrpc/clnt.c

index 3972b8414c8897b025a35dac6efa38b658e29a44..bc77c730325ce7507fe836f4d30390c3fa615b5c 100644 (file)
@@ -128,7 +128,7 @@ extern struct rpc_authops   authdes_ops;
 int                    rpcauth_register(struct rpc_authops *);
 int                    rpcauth_unregister(struct rpc_authops *);
 struct rpc_auth *      rpcauth_create(rpc_authflavor_t, struct rpc_clnt *);
-void                   rpcauth_destroy(struct rpc_auth *);
+void                   rpcauth_release(struct rpc_auth *);
 struct rpc_cred *      rpcauth_lookup_credcache(struct rpc_auth *, struct auth_cred *, int);
 struct rpc_cred *      rpcauth_lookupcred(struct rpc_auth *, int);
 struct rpc_cred *      rpcauth_bindcred(struct rpc_task *);
index 584f24311a80c7effc0a845a8ee6e2b59de5f7a6..1686dc74c6a9d2b0a4831f5eb430bb728d6fcff9 100644 (file)
@@ -93,7 +93,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
        if (IS_ERR(auth))
                return auth;
        if (clnt->cl_auth)
-               rpcauth_destroy(clnt->cl_auth);
+               rpcauth_release(clnt->cl_auth);
        clnt->cl_auth = auth;
 
 out:
@@ -101,7 +101,7 @@ out:
 }
 
 void
-rpcauth_destroy(struct rpc_auth *auth)
+rpcauth_release(struct rpc_auth *auth)
 {
        if (!atomic_dec_and_test(&auth->au_count))
                return;
index 5a28ffac99eab1b73f153a34126142df9f5128d9..98df44e453fe58b9e7e4ee2e8b3c058648202d85 100644 (file)
@@ -353,7 +353,7 @@ rpc_free_client(struct kref *kref)
        dprintk("RPC:       destroying %s client for %s\n",
                        clnt->cl_protname, clnt->cl_server);
        if (clnt->cl_auth) {
-               rpcauth_destroy(clnt->cl_auth);
+               rpcauth_release(clnt->cl_auth);
                clnt->cl_auth = NULL;
        }
        if (!IS_ERR(clnt->cl_dentry)) {