Parcourir la source

Btrfs: Add debugging for block group update failure

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason il y a 17 ans
Parent
commit
f594706643
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      fs/btrfs/extent-tree.c

+ 5 - 1
fs/btrfs/extent-tree.c

@@ -1751,7 +1751,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;
 }
 }