]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - compress_filter.c
Introduce btr_node_status() and add btr support to the file writer.
[paraslash.git] / compress_filter.c
index b17549c3a24b51d74e96c9caa63a30851e4e0094..142ad899bfe175581fb36e8943a1f5011f43d3d6 100644 (file)
@@ -103,11 +103,12 @@ static void compress_post_select(__a_unused struct sched *s, struct task *t)
        //inplace = false;
 next_buffer:
        t->error = 0;
-       ret = prepare_filter_node(fn);
+       ret = btr_node_status(btrn, fn->min_iqs);
        if (ret < 0)
                goto err;
        if (ret == 0)
                return;
+       btr_merge(btrn, fn->min_iqs);
        length = btr_next_buffer(btrn, &inbuf) & ~(size_t)1;
        ip = (int16_t *)inbuf;
        if (inplace)