X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_write.c;h=a9c421a6a0a27397afbd69b302c77199c52e768b;hp=889854c22a711a167e5bbfa61ac35241c60f8a95;hb=80ff4e0205b6eefa603835fdc30f7f32fbd21f9f;hpb=027f2c1237051d2d569d6be7f381c886f659bac3 diff --git a/osx_write.c b/osx_write.c index 889854c2..a9c421a6 100644 --- a/osx_write.c +++ b/osx_write.c @@ -276,7 +276,7 @@ static inline bool need_drain_delay(struct private_osx_write_data *powd) static void osx_write_pre_select(struct sched *s, struct task *t) { - struct writer_node *wn = container_of(t, struct writer_node, task); + struct writer_node *wn = task_context(t); struct private_osx_write_data *powd = wn->private_data; int ret; bool drain_delay_nec = false; @@ -303,7 +303,7 @@ static void osx_write_pre_select(struct sched *s, struct task *t) static int osx_write_post_select(__a_unused struct sched *s, struct task *t) { - struct writer_node *wn = container_of(t, struct writer_node, task); + struct writer_node *wn = task_context(t); struct private_osx_write_data *powd = wn->private_data; struct btr_node *btrn = wn->btrn; int ret;