diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-10-14 16:40:29 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-10-23 18:24:33 +0200 |
commit | 331bc71cb1751d78f6807ad8e6162b07c67cdd1b (patch) | |
tree | 4aee4da7e0218075ee19b440bf8115c5012483ac /net/sunrpc/auth.c | |
parent | SUNRPC: Convert auth creds to use refcount_t (diff) | |
download | linux-331bc71cb1751d78f6807ad8e6162b07c67cdd1b.tar.xz linux-331bc71cb1751d78f6807ad8e6162b07c67cdd1b.zip |
SUNRPC: Convert the auth cred cache to use refcount_t
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 4903eda5dd61..ad8ead738981 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -284,7 +284,7 @@ EXPORT_SYMBOL_GPL(rpcauth_create); void rpcauth_release(struct rpc_auth *auth) { - if (!atomic_dec_and_test(&auth->au_count)) + if (!refcount_dec_and_test(&auth->au_count)) return; auth->au_ops->destroy(auth); } |