aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-02-04 10:10:13 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:00 -0400
commitf594706643607d7d24901479e985ec62e0ce129a (patch)
tree751cf86b5957686291cbbc9d11ee2180a2b8160e /fs/btrfs/extent-tree.c
parentc2e639f02cff721172569add21ba5d058fd1a81c (diff)
Btrfs: Add debugging for block group update failure
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 6f161abe2867..a340eeedd6c7 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1751,7 +1751,11 @@ int btrfs_alloc_extent(struct btrfs_trans_handle *trans,
1751update_block: 1751update_block:
1752 ret = update_block_group(trans, root, ins->objectid, ins->offset, 1, 0, 1752 ret = update_block_group(trans, root, ins->objectid, ins->offset, 1, 0,
1753 data); 1753 data);
1754 BUG_ON(ret); 1754 if (ret) {
1755 printk("update block group failed for %Lu %Lu\n",
1756 ins->objectid, ins->offset);
1757 BUG();
1758 }
1755 return 0; 1759 return 0;
1756} 1760}
1757 1761