Message ID | 4C037BAE.9010300@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff -urp 1/fs/btrfs/extent-tree.c 3/fs/btrfs/extent-tree.c --- 1/fs/btrfs/extent-tree.c 2010-05-26 23:55:46.610378078 +0800 +++ 3/fs/btrfs/extent-tree.c 2010-05-31 16:36:51.907580723 +0800 @@ -4360,7 +4360,8 @@ void btrfs_free_tree_block(struct btrfs_ block_rsv = get_block_rsv(trans, root); cache = btrfs_lookup_block_group(root->fs_info, buf->start); - BUG_ON(block_rsv->space_info != cache->space_info); + if (block_rsv->space_info != cache->space_info) + goto out; if (btrfs_header_generation(buf) == trans->transid) { if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) {