diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 8af39521eb71..ebd8275a1934 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -768,7 +768,11 @@ static int __btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | |||
768 | l = path->nodes[0]; | 768 | l = path->nodes[0]; |
769 | 769 | ||
770 | btrfs_item_key_to_cpu(l, &key, path->slots[0]); | 770 | btrfs_item_key_to_cpu(l, &key, path->slots[0]); |
771 | BUG_ON(key.objectid != bytenr); | 771 | if (key.objectid != bytenr) { |
772 | btrfs_print_leaf(root->fs_info->extent_root, path->nodes[0]); | ||
773 | printk("wanted %Lu found %Lu\n", bytenr, key.objectid); | ||
774 | BUG(); | ||
775 | } | ||
772 | BUG_ON(key.type != BTRFS_EXTENT_ITEM_KEY); | 776 | BUG_ON(key.type != BTRFS_EXTENT_ITEM_KEY); |
773 | 777 | ||
774 | item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item); | 778 | item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item); |