From: Josef Bacik Date: Sat, 20 Apr 2013 03:45:33 +0000 (-0400) Subject: Btrfs: deal with bad mappings in btrfs_map_block X-Git-Tag: v3.10-rc1~31^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bb91873e32af6305a1c5239024674e4a5a97e92;p=pandora-kernel.git 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 Signed-off-by: Josef Bacik --- Reading git-diff-tree failed