Btrfs: SB read failure should return EIO for __bread failure
authorAnand Jain <anand.jain@oracle.com>
Fri, 14 Aug 2015 10:32:51 +0000 (18:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 29 Sep 2015 14:29:59 +0000 (16:29 +0200)
commit92fc03fbdcbe2523be3f7e6b8e95fee9563a10d2
treeec5f318ad04cf4e55581e0a5987eac02b6810c4d
parentc1b7e474595b1b3a4463450cc22aa18b926093a3
Btrfs: SB read failure should return EIO for __bread failure

This will return EIO when __bread() fails to read SB,
instead of EINVAL.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/volumes.c