btr_pushdown_br(br, btrn);
}
+int btr_pushdown_one(struct btr_node *btrn)
+{
+ struct btr_buffer_reference *br;
+
+ if (list_empty(&btrn->input_queue))
+ return 0;
+ br = list_first_entry(&btrn->input_queue, struct btr_buffer_reference, node);
+ btr_pushdown_br(br, btrn);
+ return 1;
+}
+
/* Return true if this node has no children. */
bool btr_no_children(struct btr_node *btrn)
{