13 struct tree_buffer
*read_tree_block(struct ctree_root
*root
, u64 blocknr
);
14 struct tree_buffer
*find_tree_block(struct ctree_root
*root
, u64 blocknr
);
15 int write_tree_block(struct ctree_root
*root
, struct tree_buffer
*buf
);
16 struct ctree_root
*open_ctree(char *filename
, struct ctree_super_block
*s
);
17 int close_ctree(struct ctree_root
*root
);
18 void tree_block_release(struct ctree_root
*root
, struct tree_buffer
*buf
);
19 int write_ctree_super(struct ctree_root
*root
, struct ctree_super_block
*s
);
22 #define CTREE_SUPER_INFO_OFFSET(bs) (16 * (bs))