Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
de7a8ce3
Commit
de7a8ce3
authored
Jun 23, 2007
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Rename rpcauth_destroy() to rpcauth_release()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
5e1550d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/linux/sunrpc/auth.h
include/linux/sunrpc/auth.h
+1
-1
net/sunrpc/auth.c
net/sunrpc/auth.c
+2
-2
net/sunrpc/clnt.c
net/sunrpc/clnt.c
+1
-1
No files found.
include/linux/sunrpc/auth.h
View file @
de7a8ce3
...
@@ -128,7 +128,7 @@ extern struct rpc_authops authdes_ops;
...
@@ -128,7 +128,7 @@ extern struct rpc_authops authdes_ops;
int
rpcauth_register
(
struct
rpc_authops
*
);
int
rpcauth_register
(
struct
rpc_authops
*
);
int
rpcauth_unregister
(
struct
rpc_authops
*
);
int
rpcauth_unregister
(
struct
rpc_authops
*
);
struct
rpc_auth
*
rpcauth_create
(
rpc_authflavor_t
,
struct
rpc_clnt
*
);
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_lookup_credcache
(
struct
rpc_auth
*
,
struct
auth_cred
*
,
int
);
struct
rpc_cred
*
rpcauth_lookupcred
(
struct
rpc_auth
*
,
int
);
struct
rpc_cred
*
rpcauth_lookupcred
(
struct
rpc_auth
*
,
int
);
struct
rpc_cred
*
rpcauth_bindcred
(
struct
rpc_task
*
);
struct
rpc_cred
*
rpcauth_bindcred
(
struct
rpc_task
*
);
...
...
net/sunrpc/auth.c
View file @
de7a8ce3
...
@@ -93,7 +93,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
...
@@ -93,7 +93,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
if
(
IS_ERR
(
auth
))
if
(
IS_ERR
(
auth
))
return
auth
;
return
auth
;
if
(
clnt
->
cl_auth
)
if
(
clnt
->
cl_auth
)
rpcauth_
destroy
(
clnt
->
cl_auth
);
rpcauth_
release
(
clnt
->
cl_auth
);
clnt
->
cl_auth
=
auth
;
clnt
->
cl_auth
=
auth
;
out:
out:
...
@@ -101,7 +101,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
...
@@ -101,7 +101,7 @@ rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt)
}
}
void
void
rpcauth_
destroy
(
struct
rpc_auth
*
auth
)
rpcauth_
release
(
struct
rpc_auth
*
auth
)
{
{
if
(
!
atomic_dec_and_test
(
&
auth
->
au_count
))
if
(
!
atomic_dec_and_test
(
&
auth
->
au_count
))
return
;
return
;
...
...
net/sunrpc/clnt.c
View file @
de7a8ce3
...
@@ -353,7 +353,7 @@ rpc_free_client(struct kref *kref)
...
@@ -353,7 +353,7 @@ rpc_free_client(struct kref *kref)
dprintk
(
"RPC: destroying %s client for %s
\n
"
,
dprintk
(
"RPC: destroying %s client for %s
\n
"
,
clnt
->
cl_protname
,
clnt
->
cl_server
);
clnt
->
cl_protname
,
clnt
->
cl_server
);
if
(
clnt
->
cl_auth
)
{
if
(
clnt
->
cl_auth
)
{
rpcauth_
destroy
(
clnt
->
cl_auth
);
rpcauth_
release
(
clnt
->
cl_auth
);
clnt
->
cl_auth
=
NULL
;
clnt
->
cl_auth
=
NULL
;
}
}
if
(
!
IS_ERR
(
clnt
->
cl_dentry
))
{
if
(
!
IS_ERR
(
clnt
->
cl_dentry
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment