prebuffer: Bail out on bufffer tree errors.
[paraslash.git] / prebuffer_filter.c
index 05ceb88c5b93c4e7c52b4a55029f893d7ec2cd23..1988e6e0fcc2d0b5f13c215fa6857524e6442e43 100644 (file)
@@ -60,6 +60,9 @@ static int prebuffer_post_select(__a_unused struct sched *s, void *context)
        int ret;
 
        ret = task_get_notification(fn->task);
+       if (ret < 0)
+               return ret;
+       ret = btr_node_status(btrn, size, BTR_NT_INTERNAL);
        if (ret < 0)
                return ret;
        if (ppd->barrier.tv_sec == 0)