]> git.baikalelectronics.ru Git - kernel.git/commit
dm writecache: count number of blocks discarded, not number of discard bios
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Jul 2022 20:31:52 +0000 (16:31 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 14 Jul 2022 19:54:46 +0000 (15:54 -0400)
commit81b5494082843605496cb76a387b45f8d9ff4729
treed69a777e5e2d218fe96334f1b00233ea808c88d9
parent887f0e707156c3ddfc1205f0c645d5bcbaf1260d
dm writecache: count number of blocks discarded, not number of discard bios

Change dm-writecache, so that it counts the number of blocks discarded
instead of the number of discard bios. Make it consistent with the
read and write statistics counters that were changed to count the
number of blocks instead of bios.

Fixes: 2f3825b88d33 ("dm writecache: add event counters")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-writecache.c