X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=osx_write.c;h=a9c421a6a0a27397afbd69b302c77199c52e768b;hb=7f72602378768f695b661d62b266b763ca09a432;hp=f1e308d8beb498586f60acbe1fa93b24077bc320;hpb=aa74a903545250506fd4c29791e6f4aef3a01c41;p=paraslash.git diff --git a/osx_write.c b/osx_write.c index f1e308d8..a9c421a6 100644 --- a/osx_write.c +++ b/osx_write.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2013 Andre Noll + * Copyright (C) 2006-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;