Commit 49e97b6d authored by David S. Miller's avatar David S. Miller

[IPV4]: Two minor errors in jiffies changes.

parent 07684b51
......@@ -441,7 +441,7 @@ static int rt_may_expire(struct rtable *rth, unsigned long tmo1, unsigned long t
ret = 1;
if (rth->u.dst.expires &&
time_after(jiffies, rth->u.dst.expires))
time_after_eq(jiffies, rth->u.dst.expires))
goto out;
age = jiffies - rth->u.dst.lastuse;
......@@ -472,7 +472,7 @@ static void SMP_TIMER_NAME(rt_check_expire)(unsigned long dummy)
while ((rth = *rthp) != NULL) {
if (rth->u.dst.expires) {
/* Entry is expired even if it is in use */
if (time_after(now, rth->u.dst.expires)) {
if (time_after_eq(now, rth->u.dst.expires)) {
tmo >>= 1;
rthp = &rth->u.rt_next;
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment