patch-2.4.0-test10 linux/net/sunrpc/auth.c
Next file: linux/net/sunrpc/auth_null.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri Oct 13 12:11:26 2000
- Orig file:
v2.4.0-test9/linux/net/sunrpc/auth.c
- Orig date:
Sat May 13 09:43:55 2000
diff -u --recursive --new-file v2.4.0-test9/linux/net/sunrpc/auth.c linux/net/sunrpc/auth.c
@@ -159,7 +159,7 @@
{
int nr;
- nr = (cred->cr_uid % RPC_CREDCACHE_NR);
+ nr = (cred->cr_uid & RPC_CREDCACHE_MASK);
spin_lock(&rpc_credcache_lock);
cred->cr_next = auth->au_credcache[nr];
auth->au_credcache[nr] = cred;
@@ -178,7 +178,7 @@
int nr = 0;
if (!(taskflags & RPC_TASK_ROOTCREDS))
- nr = current->uid % RPC_CREDCACHE_NR;
+ nr = current->uid & RPC_CREDCACHE_MASK;
if (time_before(auth->au_nextgc, jiffies))
rpcauth_gc_credcache(auth);
@@ -218,7 +218,7 @@
struct rpc_cred **q, *cr;
int nr;
- nr = (cred->cr_uid % RPC_CREDCACHE_NR);
+ nr = (cred->cr_uid & RPC_CREDCACHE_MASK);
spin_lock(&rpc_credcache_lock);
q = &auth->au_credcache[nr];
while ((cr = *q) != NULL) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)