From: Chris Mason Date: Mon, 4 Feb 2008 15:10:13 +0000 (-0500) Subject: Btrfs: Add debugging for block group update failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f594706643607d7d24901479e985ec62e0ce129a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: Add debugging for block group update failure Signed-off-by: Chris Mason --- 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, update_block: ret = update_block_group(trans, root, ins->objectid, ins->offset, 1, 0, data); - BUG_ON(ret); + if (ret) { + printk("update block group failed for %Lu %Lu\n", + ins->objectid, ins->offset); + BUG(); + } return 0; }