From: Klaus Jensen <k.jen...@samsung.com> A Write Zeroes commands should not be counted in either the 'Data Units Written' or in 'Host Write Commands' SMART/Health Information Log page.
Signed-off-by: Klaus Jensen <k.jen...@samsung.com> Reviewed-by: Minwoo Im <minwoo.im....@gmail.com> Reviewed-by: Keith Busch <kbu...@kernel.org> --- hw/block/nvme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index baa69a4a6859..8244909562a2 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -2171,7 +2171,6 @@ static uint16_t nvme_do_write(NvmeCtrl *n, NvmeRequest *req, bool append, nvme_rw_cb, req); } } else { - block_acct_start(blk_get_stats(blk), &req->acct, 0, BLOCK_ACCT_WRITE); req->aiocb = blk_aio_pwrite_zeroes(blk, data_offset, data_size, BDRV_REQ_MAY_UNMAP, nvme_rw_cb, req); -- 2.30.1