mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
Btrfs: Add debugging for block group update failure
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
c2e639f02c
commit
f594706643
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue