Message ID | 1409161665-28234-1-git-send-email-dsterba@suse.cz (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
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));
Kill the BUG_ON. Signed-off-by: David Sterba <dsterba@suse.cz> --- disk-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)