]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: deal with bad mappings in btrfs_map_block
authorJosef Bacik <jbacik@fusionio.com>
Sat, 20 Apr 2013 03:45:33 +0000 (23:45 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:02 +0000 (15:55 -0400)
commit402eb52fcb098f0c96f7cb1391777e5427b2339d
treee31655e36122970005ac8790aa3eaeb5fc82e992
parentf7362521913e482e9901c0f2805e5b2dff56a0de
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: Martin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/volumes.c