Btrfs: Break up ctree.c a little

Extent fixes

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-02-24 06:24:44 -05:00
committed by David Woodhouse
parent 9a8dd1502d
commit 5de08d7d50
6 changed files with 176 additions and 374 deletions

View File

@@ -172,7 +172,6 @@ int close_ctree(struct ctree_root *root)
void tree_block_release(struct ctree_root *root, struct tree_buffer *buf)
{
buf->count--;
write_tree_block(root, buf);
if (buf->count < 0)
BUG();
if (buf->count == 0) {