btrfs: fix EIO misuse to report missing degraded option
authorAnand Jain <anand.jain@oracle.com>
Mon, 9 Oct 2017 03:07:44 +0000 (11:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
commit45dbdbc9f66c749fa329130dcd641eb0606129d0
treec7af973c79ef4db8951e8b2cf2f588857d9c6e11
parentadfb69af7d8cb6a3958f75aad1ef4bc96891d116
btrfs: fix EIO misuse to report missing degraded option

EIO is only for the IO failure to the device, avoid it. Use ENOENT as
that's the closest error code describing what happened.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c