diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-02-15 02:15:32 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-02-15 02:15:32 +0000 |
commit | 86464aed71025541805e7b1515541aee89879e33 (patch) | |
tree | e01a457a4912a8553bc65524aa3125d51f29f810 /net/sunrpc/auth.c | |
parent | 88f99939ecc6a95a79614574cb7d95ffccfc3466 (diff) |
Merge with Linux 2.2.1.
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 2ac1f7b7f..96d81dd5a 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -117,7 +117,7 @@ rpcauth_gc_credcache(struct rpc_auth *auth) printk("RPC: rpcauth_gc_credcache looping!\n"); break; } - if (!cred->cr_count && cred->cr_expire < jiffies) { + if (!cred->cr_count && time_before(cred->cr_expire, jiffies)) { *q = cred->cr_next; cred->cr_next = free; free = cred; @@ -160,7 +160,7 @@ rpcauth_lookup_credcache(struct rpc_task *task) nr = RPC_DO_ROOTOVERRIDE(task)? 0 : (current->uid % RPC_CREDCACHE_NR); - if (auth->au_nextgc < jiffies) + if (time_before(auth->au_nextgc, jiffies)) rpcauth_gc_credcache(auth); q = &auth->au_credcache[nr]; |