diff options
author | Anand Jain <anand.jain@oracle.com> | 2018-04-25 13:01:44 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:27 +0200 |
commit | f9fbcaa2a3221f55a8eee319e4b2d532635e002e (patch) | |
tree | f3031bbe4020b19928c92f9bcbd7dfdeb46ad0ee /fs/btrfs/volumes.h | |
parent | btrfs: move btrfs_raid_group values to btrfs_raid_attr table (diff) | |
download | linux-f9fbcaa2a3221f55a8eee319e4b2d532635e002e.tar.xz linux-f9fbcaa2a3221f55a8eee319e4b2d532635e002e.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/volumes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index b26f53462e8d..3a6dbbce650a 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -329,12 +329,12 @@ struct btrfs_raid_attr { int tolerated_failures; /* max tolerated fail devs */ int devs_increment; /* ndevs has to be a multiple of this */ int ncopies; /* how many copies to data has */ + int mindev_error; /* error code if min devs requisite is unmet */ const char raid_name[8]; /* name of the raid */ u64 bg_flag; /* block group flag of the raid */ }; extern const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES]; -extern const int btrfs_raid_mindev_error[BTRFS_NR_RAID_TYPES]; struct map_lookup { u64 type; |