Re: [PATCH v2 1/3] nvme: Move adjustment of data_units{read,written}

2022-11-15 Thread Klaus Jensen
On Nov 14 14:50, Joel Granados wrote: > In order to return the units_{read/written} required by the SMART log we > need to shift the number of bytes value by BDRV_SECTORS_BITS and multiply > by 1000. This is a prep patch that moves this adjustment to where the SMART > log is calculated in order to

[PATCH v2 1/3] nvme: Move adjustment of data_units{read,written}

2022-11-14 Thread Joel Granados
In order to return the units_{read/written} required by the SMART log we need to shift the number of bytes value by BDRV_SECTORS_BITS and multiply by 1000. This is a prep patch that moves this adjustment to where the SMART log is calculated in order to use the stats struct for calculating OCP exten