Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9bb91873 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: deal with bad mappings in btrfs_map_block



Martin Steigerwald reported a BUG_ON() in btrfs_map_block where we didn't find
a chunk for a particular block we were trying to map.  This happened because the
block was bogus.  We shouldn't be BUG_ON()'ing in this case, just print a
message and return an error.  This came from reada_add_block and it appears to
deal with an error fine so we should be good there.  Thanks,

Reported-by: default avatarMartin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent d4c7ca86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment