[dm-devel] [PATCH 1/3] block: inherit the zoned characteristics in blk_stack_limits

Johannes Thumshirn Johannes.Thumshirn at wdc.com
Mon Jul 20 06:45:24 UTC 2020


On 20/07/2020 08:13, Christoph Hellwig wrote:
>  /*
>   * Zoned block device models (zoned limit).
> + *
> + * Note: This needs to be ordered from the least to the most severe
> + * restrictions for the inheritance in blk_stack_limits() to work.
>   */
>  enum blk_zoned_model {
> -	BLK_ZONED_NONE,	/* Regular block device */
> -	BLK_ZONED_HA,	/* Host-aware zoned block device */
> -	BLK_ZONED_HM,	/* Host-managed zoned block device */
> +	BLK_ZONED_NONE = 0,	/* Regular block device */

The initialization to 0 for the first value is not needed.

Apart from that,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>






More information about the dm-devel mailing list