X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ao_write.c;h=4cecdfd87c10047eb8a5b646b7178401da1eac6f;hb=44bfd8564c5b85fe394f847a713ab5e6710fd03c;hp=bab5a80ef9308b7204bf6294dea8963f89880113;hpb=c5056b00502d27e602cfcd716f92e5f85f97b470;p=paraslash.git diff --git a/ao_write.c b/ao_write.c index bab5a80e..4cecdfd8 100644 --- a/ao_write.c +++ b/ao_write.c @@ -46,9 +46,9 @@ static void aow_close(struct writer_node *wn) wn->private_data = NULL; } -static void aow_pre_select(struct sched *s, struct task *t) +static void aow_pre_select(struct sched *s, void *context) { - struct writer_node *wn = task_context(t); + struct writer_node *wn = context; struct private_aow_data *pawd = wn->private_data; int ret; @@ -308,10 +308,9 @@ fail: return -E_AO_PTHREAD; } -static int aow_post_select(__a_unused struct sched *s, - struct task *t) +static int aow_post_select(__a_unused struct sched *s, void *context) { - struct writer_node *wn = task_context(t); + struct writer_node *wn = context; struct private_aow_data *pawd = wn->private_data; int ret;