summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorAnand Jain2018-04-25 13:01:43 +0200
committerDavid Sterba2018-05-28 18:07:27 +0200
commit41a6e8913cdff6b30ac53a24641259d117c0b101 (patch)
tree1e27218bccdeb150cade9ee04c7c98767261b79e /fs/btrfs/volumes.h
parentbtrfs: move btrfs_raid_type_names values to btrfs_raid_attr table (diff)
downloadkernel-qcow2-linux-41a6e8913cdff6b30ac53a24641259d117c0b101.tar.gz
kernel-qcow2-linux-41a6e8913cdff6b30ac53a24641259d117c0b101.tar.xz
kernel-qcow2-linux-41a6e8913cdff6b30ac53a24641259d117c0b101.zip
btrfs: move btrfs_raid_group values to btrfs_raid_attr table
Add a new member struct btrfs_raid_attr::bg_flag so that btrfs_raid_array can maintain the bit map flag of the raid type, and so we can drop btrfs_raid_group. 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 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index 9056a900aace..b26f53462e8d 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -330,11 +330,11 @@ struct btrfs_raid_attr {
int devs_increment; /* ndevs has to be a multiple of this */
int ncopies; /* how many copies to data has */
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];
-extern const u64 btrfs_raid_group[BTRFS_NR_RAID_TYPES];
struct map_lookup {
u64 type;