linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: readahead errors are not fatal
@ 2014-08-27 17:47 David Sterba
  2014-08-27 18:16 ` Zach Brown
  0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2014-08-27 17:47 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Kill the BUG_ON.

Signed-off-by: David Sterba <dsterba@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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-29 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 17:47 [PATCH] btrfs-progs: readahead errors are not fatal David Sterba
2014-08-27 18:16 ` Zach Brown
2014-08-29 14:38   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).