|
@@ -433,11 +433,8 @@ mtype_gc_init(struct ip_set *set, void (*gc)(unsigned long ul_set))
|
|
|
{
|
|
|
struct htype *h = set->data;
|
|
|
|
|
|
- init_timer(&h->gc);
|
|
|
- h->gc.data = (unsigned long)set;
|
|
|
- h->gc.function = gc;
|
|
|
- h->gc.expires = jiffies + IPSET_GC_PERIOD(set->timeout) * HZ;
|
|
|
- add_timer(&h->gc);
|
|
|
+ setup_timer(&h->gc, gc, (unsigned long)set);
|
|
|
+ mod_timer(&h->gc, jiffies + IPSET_GC_PERIOD(set->timeout) * HZ);
|
|
|
pr_debug("gc initialized, run in every %u\n",
|
|
|
IPSET_GC_PERIOD(set->timeout));
|
|
|
}
|