dm writecache: add event counters
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 27 Jul 2021 13:42:21 +0000 (09:42 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 10 Aug 2021 17:27:49 +0000 (13:27 -0400)
commite3a35d03407cb3ef9488835aa861e07b45638d0b
treee008bfff0fa621966fd14270e7c083a87c8bd362
parentdf699cc16ea5ef93a917676dcdd4376e02860ad5
dm writecache: add event counters

Add 10 counters for various events (hit, miss, etc) and export them in
the status line (accessed from userspace with "dmsetup status"). Also
add a message "clear_stats" that resets these counters.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/writecache.rst
drivers/md/dm-writecache.c