Kill the BUG_ON.

Signed-off-by: David Sterba <dste...@suse.cz>
---
 disk-io.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/disk-io.c b/disk-io.c
index 8db0335bc81b..7ddd4b90836f 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -152,7 +152,8 @@ int readahead_tree_block(struct btrfs_root *root, u64 
bytenr, u32 blocksize,
        length = blocksize;
        ret = btrfs_map_block(&root->fs_info->mapping_tree, READ,
                              bytenr, &length, &multi, 0, NULL);
-       BUG_ON(ret);
+       if (ret)
+               return 0
        device = multi->stripes[0].dev;
        device->total_ios++;
        blocksize = min(blocksize, (u32)(64 * 1024));
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to