Change btrfs_map_block to return a structure with mappings for all stripes
[linux-block.git] / fs / btrfs / ctree.c
index 3c7891cf0d723ed6e8d4278e3d85d281790d49dc..c92c6b0ee582f7bbfd2c0dae7d2bf3953324626b 100644 (file)
@@ -2025,8 +2025,10 @@ again:
                                         root->root_key.objectid,
                                         root_gen, disk_key.objectid, 0,
                                         l->start, 0);
-       if (IS_ERR(right))
+       if (IS_ERR(right)) {
+               BUG_ON(1);
                return PTR_ERR(right);
+       }
 
        memset_extent_buffer(right, 0, 0, sizeof(struct btrfs_header));
        btrfs_set_header_bytenr(right, right->start);