Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5947066 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Add debugging for block group update failure

parent c2e639f0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
}