patch-2.2.0-pre1 linux/net/sunrpc/auth.c
Next file: linux/net/sunrpc/xprt.c
Previous file: linux/net/sched/sch_api.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Dec 23 09:44:42 1998
- Orig file:
v2.1.132/linux/net/sunrpc/auth.c
- Orig date:
Mon Apr 7 11:35:33 1997
diff -u --recursive --new-file v2.1.132/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 && cred->cr_expire < jiffies) {
+ if (!cred->cr_count && time_after(jiffies, cred->cr_expire)) {
*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 (auth->au_nextgc < jiffies)
+ if (time_after(jiffies, auth->au_nextgc))
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