Re: [PATCH] btrfs: kill btrfs_raid_type_names[]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 







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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux