summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay K. Nallamothu <vinay-rc@naturesoft.net>2003-05-03 16:06:38 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-05-03 16:06:38 -0700
commitc6afbf699abcd2fe9482d31c5415594621cb3f39 (patch)
tree111cf51ed8f0f0fcbf77e578b4081d6745a724d9
parentbf5ae502cef9ad9bb41de5cf8a634f977f27367a (diff)
[NET]: Use mod_timer in dst.c
-rw-r--r--net/core/dst.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/core/dst.c b/net/core/dst.c
index 3e8af277cd53..f4dd7d8d4f7f 100644
--- a/net/core/dst.c
+++ b/net/core/dst.c
@@ -154,11 +154,9 @@ void __dst_free(struct dst_entry * dst)
dst->next = dst_garbage_list;
dst_garbage_list = dst;
if (dst_gc_timer_inc > DST_GC_INC) {
- del_timer(&dst_gc_timer);
dst_gc_timer_inc = DST_GC_INC;
dst_gc_timer_expires = DST_GC_MIN;
- dst_gc_timer.expires = jiffies + dst_gc_timer_expires;
- add_timer(&dst_gc_timer);
+ mod_timer(&dst_gc_timer, jiffies + dst_gc_timer_expires);
}
spin_unlock_bh(&dst_lock);
}