Btrfs: remove BUG_ON()'s in btrfs_map_block
authorJosef Bacik <jbacik@fb.com>
Tue, 12 Apr 2016 16:54:40 +0000 (12:54 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commite042d1ec4417981dfe9331e47b76f17929bc2ffe
tree28759b242c748021f8dde002aae988a6fe7bba93
parent3d8da67817606380fdadfa483d4dba5c3a5446c6
Btrfs: remove BUG_ON()'s in btrfs_map_block

btrfs_map_block can go horribly wrong in the face of fs corruption, lets agree
to not be assholes and panic at any possible chance things are all fucked up.

Signed-off-by: Josef Bacik <jbacik@fb.com>
[ removed type casts ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c