patch-2.2.0-pre1 linux/fs/lockd/host.c
Next file: linux/fs/lockd/svc.c
Previous file: linux/fs/hfs/sysdep.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Dec 23 09:44:42 1998
- Orig file:
v2.1.132/linux/fs/lockd/host.c
- Orig date:
Wed Apr 23 19:01:26 1997
diff -u --recursive --new-file v2.1.132/linux/fs/lockd/host.c linux/fs/lockd/host.c
@@ -92,7 +92,7 @@
/* Lock hash table */
down(&nlm_host_sema);
- if (next_gc < jiffies)
+ if (time_after(jiffies, next_gc))
nlm_gc_hosts();
for (hp = &nlm_hosts[hash]; (host = *hp); hp = &host->h_next) {
@@ -173,7 +173,7 @@
/* If we've already created an RPC client, check whether
* RPC rebind is required */
if ((clnt = host->h_rpcclnt) != NULL) {
- if (host->h_nextrebind < jiffies) {
+ if (time_after(jiffies, host->h_nextrebind)) {
clnt->cl_port = 0;
host->h_nextrebind = jiffies + NLM_HOST_REBIND;
dprintk("lockd: next rebind in %ld jiffies\n",
@@ -219,7 +219,7 @@
nlm_rebind_host(struct nlm_host *host)
{
dprintk("lockd: rebind host %s\n", host->h_name);
- if (host->h_rpcclnt && host->h_nextrebind < jiffies) {
+ if (host->h_rpcclnt && time_after(jiffies, host->h_nextrebind)) {
host->h_rpcclnt->cl_port = 0;
host->h_nextrebind = jiffies + NLM_HOST_REBIND;
}
@@ -298,7 +298,7 @@
q = &nlm_hosts[i];
while ((host = *q) != NULL) {
if (host->h_count || host->h_inuse
- || host->h_expires >= jiffies) {
+ || time_before_eq(jiffies, host->h_expires)) {
q = &host->h_next;
continue;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov