OSDN Git Service

btrfs: move btrfs_raid_mindev_errorvalues to btrfs_raid_attr table
authorAnand Jain <anand.jain@oracle.com>
Wed, 25 Apr 2018 11:01:44 +0000 (19:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:27 +0000 (18:07 +0200)
commitf9fbcaa2a3221f55a8eee319e4b2d532635e002e
treef3031bbe4020b19928c92f9bcbd7dfdeb46ad0ee
parent41a6e8913cdff6b30ac53a24641259d117c0b101
btrfs: move btrfs_raid_mindev_errorvalues to btrfs_raid_attr table

Add a new member struct btrfs_raid_attr::mindev_error so that
btrfs_raid_array can maintain the error code to return if the minimum
number of devices condition is not met while trying to delete a device
in the given raid. And so we can drop btrfs_raid_mindev_error.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h