X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sync_filter.c;fp=sync_filter.c;h=203451f2c23cef6cec6db8072654cbf123a30a0e;hb=3cc5654fec9db630eac146f8475067228efe51ae;hp=379b54b13395b20190e69543b57ed49ed3e569fe;hpb=e58586b7395a84e5883b077d89b92c8ac649a1f2;p=paraslash.git diff --git a/sync_filter.c b/sync_filter.c index 379b54b1..203451f2 100644 --- a/sync_filter.c +++ b/sync_filter.c @@ -261,7 +261,7 @@ static void sync_set_timeout(struct sync_filter_context *ctx, static void sync_pre_select(struct sched *s, struct task *t) { int ret; - struct filter_node *fn = container_of(t, struct filter_node, task); + struct filter_node *fn = task_context(t); struct sync_filter_context *ctx = fn->private_data; struct sync_filter_config *sfc = fn->conf; @@ -298,7 +298,7 @@ static struct sync_buddy *sync_find_buddy(struct sockaddr *addr, static int sync_post_select(__a_unused struct sched *s, struct task *t) { int ret; - struct filter_node *fn = container_of(t, struct filter_node, task); + struct filter_node *fn = task_context(t); struct sync_filter_context *ctx = fn->private_data; struct sync_filter_config *sfc = fn->conf; struct sync_buddy *buddy, *tmp;