mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-12-05 01:54:19 +08:00
Add debugging for block group update failure
This commit is contained in:
parent
ece29db279
commit
f3f156de82
@ -1705,7 +1705,11 @@ int btrfs_alloc_extent(struct btrfs_trans_handle *trans,
|
|||||||
update_block:
|
update_block:
|
||||||
ret = update_block_group(trans, root, ins->objectid, ins->offset, 1, 0,
|
ret = update_block_group(trans, root, ins->objectid, ins->offset, 1, 0,
|
||||||
data);
|
data);
|
||||||
BUG_ON(ret);
|
if (ret) {
|
||||||
|
printk("update block group failed for %Lu %Lu\n",
|
||||||
|
ins->objectid, ins->offset);
|
||||||
|
BUG();
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user