diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 2cee9df001f6..cb04a70eb7e8 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -35,8 +35,10 @@ int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, | |||
35 | key.offset = num_blocks; | 35 | key.offset = num_blocks; |
36 | ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, path, | 36 | ret = btrfs_search_slot(trans, root->fs_info->extent_root, &key, path, |
37 | 0, 1); | 37 | 0, 1); |
38 | if (ret != 0) | 38 | if (ret != 0) { |
39 | printk("can't find block %Lu %Lu\n", blocknr, num_blocks); | ||
39 | BUG(); | 40 | BUG(); |
41 | } | ||
40 | BUG_ON(ret != 0); | 42 | BUG_ON(ret != 0); |
41 | l = btrfs_buffer_leaf(path->nodes[0]); | 43 | l = btrfs_buffer_leaf(path->nodes[0]); |
42 | item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item); | 44 | item = btrfs_item_ptr(l, path->slots[0], struct btrfs_extent_item); |