Re: [PATCH] f2fs: add iostat support for FS_DISCARD_IO

From: Chao Yu
Date: Mon Dec 12 2022 - 05:23:15 EST


On 2022/12/12 13:47, Yangtao Li wrote:
Just like other data we count uses the number of bytes as the basic
unit, but discard uses the number of cmds as the statistical unit. In
fact, the discard command contains the number of blocks. In order to
avoid breaking its usage of application, let's keeping FS_DISCARD
as it is, and add FS_DISCARD_IO to account discard bytes.

Suggested-by: Chao Yu <chao@xxxxxxxxxx>
Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,