]> git.baikalelectronics.ru Git - kernel.git/commit
fix unit of rs_same_csums accounting
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 3 Mar 2010 01:08:22 +0000 (02:08 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 11 Mar 2010 15:01:38 +0000 (16:01 +0100)
commit9d36cae5a40cdfb76a0f1e16dc9f5f9950dffecc
treec8e97f6955bdb4719761593f2575de88210a5a15
parentc8c8a44716226c715cdb9a43d5097f79761e9ddb
fix unit of rs_same_csums accounting

Depending on resync request size,
we need to account for more than one bit.

Impact: cosmetic

If SyncTarget reported correctly 100% equal checksums,
the SyncSource usually reported 12% equal checksums instead,
because it only counted requests, we typically do 32k resync requests,
and the bitmap granularity is still 4k.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_worker.c