13 struct tree_buffer
*read_tree_block(struct ctree_root
*root
, u64 blocknr
);
14 int write_tree_block(struct ctree_root
*root
, struct tree_buffer
*buf
);
15 struct ctree_root
*open_ctree(char *filename
);
16 int close_ctree(struct ctree_root
*root
);
17 void tree_block_release(struct ctree_root
*root
, struct tree_buffer
*buf
);
18 struct tree_buffer
*alloc_free_block(struct ctree_root
*root
);
19 int update_root_block(struct ctree_root
*root
);