]> 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)
commita73d7d84008d85503756a2272ed988a4b81741d1
treed69a777e5e2d218fe96334f1b00233ea808c88d9
parent663091923bf0b3fcd3e957ba557ff4945dce6987
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: 5020e7d07244 ("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