X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=osx_write.c;h=a9c421a6a0a27397afbd69b302c77199c52e768b;hb=f3f25455d91c6d8fa7789abce1f7c536436beead;hp=889854c22a711a167e5bbfa61ac35241c60f8a95;hpb=56df9bb38aa4725f9244a7898d765608d8a1fffa;p=paraslash.git 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;