Btrfs: set error return value in btrfs_get_blocks_direct
authorFilipe Manana <fdmanana@suse.com>
Mon, 7 Jul 2014 11:35:21 +0000 (12:35 +0100)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:32 +0000 (13:37 -0700)
commit555e12864063762964433139dee651c5b859a047
tree6e5aaef75cb38968c76ec363c78f45ac94d7ba9a
parent27a3507de91e3dd51a2cf8dca4b33623dd6eaa88
Btrfs: set error return value in btrfs_get_blocks_direct

We were returning with 0 (success) because we weren't extracting the
error code from em (PTR_ERR(em)). Fix it.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c