[PATCH 3/5] block: Reduce the size of struct blk_integrity

Sagi Grimberg sagig at dev.mellanox.co.il
Wed Jul 22 04:35:01 PDT 2015


On 7/21/2015 9:02 AM, Martin K. Petersen wrote:
> The per-device properties in the blk_integrity structure were previously
> unsigned short. However, most of the values fit inside a char. The only
> exception is the data interval size and we can work around that by
> storing it as a power of two.
>
> This cuts the size of the dynamic portion of blk_integrity in half.
>
> Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
> Reported-by: Christoph Hellwig <hch at lst.de>

Reviewed-by: Sagi Grimberg <sagig at mellanox.com>



More information about the Linux-nvme mailing list