projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab9bb7
)
SUNRPC: Fix a typo in unx_create()
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 24 Jun 2007 19:24:29 +0000
(15:24 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:33 +0000
(23:40 -0400)
We want to set the unix_cred_cache.nextgc on the first call to
unx_create(), which should be when unix_auth.au_count === 1
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_unix.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_unix.c
b/net/sunrpc/auth_unix.c
index 5622783011a4824eea6045fbce39a4a1e57e025f..e54782e75d59d8f09d50edaf0b899b69191b628d 100644
(file)
--- a/
net/sunrpc/auth_unix.c
+++ b/
net/sunrpc/auth_unix.c
@@
-41,7
+41,7
@@
unx_create(struct rpc_clnt *clnt, rpc_authflavor_t flavor)
{
dprintk("RPC: creating UNIX authenticator for client %p\n",
clnt);
- if (atomic_inc_return(&unix_auth.au_count) ==
0
)
+ if (atomic_inc_return(&unix_auth.au_count) ==
1
)
unix_cred_cache.nextgc = jiffies + (unix_cred_cache.expire >> 1);
return &unix_auth;
}