]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-stats: fix dm_jiffies_to_msec64
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 10 Jul 2026 16:37:15 +0000 (18:37 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 10 Jul 2026 16:40:27 +0000 (18:40 +0200)
commit386df1a57b631c456d14f857cb0c0c2e11c16bef
treeebca59da99310d9f074a5d3ee7b167e31c6bf145
parent1917eb2db750ecbdf710f79a8042eaa545a063c7
dm-stats: fix dm_jiffies_to_msec64

There were wrong calculations in dm_jiffies_to_msec64 that produced
incorrect output when HZ was different from 1000. This commit fixes them.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-4-6
Fixes: fd2ed4d25270 ("dm: add statistics support")
Cc: stable@vger.kernel.org
drivers/md/dm-stats.c