Introduce btr_node_status() and add btr support to the file writer.
[paraslash.git] / compress_filter.c
index b17549c..142ad89 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)