btrfs: fix use of error or warning for missing device
authorAnand Jain <anand.jain@oracle.com>
Mon, 9 Oct 2017 03:07:46 +0000 (11:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
commit2b902dfc896ffab875842ed62820dca0b99ff461
tree9509172649c45b93faa70fdd5a615befcd16d3b2
parent5a2b8e601c572527adfc4986941311c21effae6c
btrfs: fix use of error or warning for missing device

When device is missing without the -o degraded option then its an error
so report it as an error instead of a warning.  And when -o degraded
option is provided, log the missing device as warning.

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