patch-2.2.0-pre2 linux/net/sunrpc/auth.c
Next file: linux/net/sunrpc/sched.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Dec 29 11:42:25 1998
- Orig file:
v2.2.0-pre1/linux/net/sunrpc/auth.c
- Orig date:
Mon Dec 28 15:00:53 1998
diff -u --recursive --new-file v2.2.0-pre1/linux/net/sunrpc/auth.c linux/net/sunrpc/auth.c
@@ -117,7 +117,7 @@
printk("RPC: rpcauth_gc_credcache looping!\n");
break;
}
- if (!cred->cr_count && time_after(jiffies, cred->cr_expire)) {
+ if (!cred->cr_count && time_before(cred->cr_expire, jiffies)) {
*q = cred->cr_next;
cred->cr_next = free;
free = cred;
@@ -160,7 +160,7 @@
nr = RPC_DO_ROOTOVERRIDE(task)? 0 : (current->uid % RPC_CREDCACHE_NR);
- if (time_after(jiffies, auth->au_nextgc))
+ if (time_before(auth->au_nextgc, jiffies))
rpcauth_gc_credcache(auth);
q = &auth->au_credcache[nr];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov