]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
write: Switch to the alternative post select method.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 Mar 2013 17:34:52 +0000 (17:34 +0000)
committerAndre Noll <maan@systemlinux.org>
Tue, 30 Apr 2013 12:12:46 +0000 (14:12 +0200)
write.c

diff --git a/write.c b/write.c
index 3deef1474c840a48e88d4db6717b0d446a1e994b..b401b078f2a09f819b26981bd1111faa5e6bbdaa 100644 (file)
--- a/write.c
+++ b/write.c
@@ -86,10 +86,10 @@ static void write_pre_select(struct sched *s, struct task *t)
        check_wav_pre_select(s, wt->cwc);
 }
 
-static void write_post_select(__a_unused struct sched *s, struct task *t)
+static int write_post_select(__a_unused struct sched *s, struct task *t)
 {
        struct write_task *wt = container_of(t, struct write_task, task);
-       t->error = check_wav_post_select(wt->cwc);
+       return check_wav_post_select(wt->cwc);
 }
 
 static int setup_and_schedule(void)
@@ -102,7 +102,7 @@ static int setup_and_schedule(void)
        struct write_task wt = {
                .task = {
                        .pre_select = write_pre_select,
-                       .post_select = write_post_select,
+                       .new_post_select = write_post_select,
                        .status = "write task",
                },
        };