Re: [PATCH] btrfs: kill btrfs_raid_type_names[]

Anand Jain
2018-04-25T09:27:20Z

>> diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
>> index ef220d541d4b..2acd32ce1573 100644
>> --- a/fs/btrfs/volumes.h
>> +++ b/fs/btrfs/volumes.h
>> @@ -342,6 +342,7 @@ 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 */
>> + char *raid_name; /* name of the raid */
> nit: const char * ?

Its declared as const when allocated.

const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {

Thanks, Anand