#define FOR_EACH_BUFFER_REF_SAFE(_br, _tmp, _btrn) \
list_for_each_entry_safe((_br), (_tmp), &(_btrn)->input_queue, node)
-/*
- (parent, child):
- (NULL, NULL): new, isolated node.
- (p, NULL): new leaf node
- (NULL, c): new node becomes root, c must be old root
- (p, c): new internal node, ch must be child of p, not yet implemented
-
-*/
struct btr_node *btr_new_node(struct btr_node_description *bnd)
{
struct btr_node *btrn = para_malloc(sizeof(*btrn));