Btrfs: return error if the range we want to map is bogus
authorJosef Bacik <josef@redhat.com>
Tue, 15 Mar 2011 18:52:12 +0000 (14:52 -0400)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:35 +0000 (14:21 -0400)
commit850265335f792f5d39ab24e5fb7160bac28d77e5
tree8ecc731b9b03e32e067961bc30e6a824ed946187
parent695a0d0da09e75c4475bbb303def159023ef72ca
Btrfs: return error if the range we want to map is bogus

Currently if we have corrupt metadata map_extent_buffer will complain about it,
but not return an error so the caller has no idea a problem was hit.  Fix this.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/extent_io.c