]> git.baikalelectronics.ru Git - kernel.git/commit
dm integrity: fix error reporting in bitmap mode after creation
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 31 Aug 2020 13:25:41 +0000 (09:25 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 1 Sep 2020 20:41:57 +0000 (16:41 -0400)
commitd7e4e3eaa23d8de011f79cce3bd063a198283417
tree3d584afed533f1151d72c877a8a590bc5d19c04c
parent26632c2cb60f6100d2d02d182bcb84b45df14e67
dm integrity: fix error reporting in bitmap mode after creation

The dm-integrity target did not report errors in bitmap mode just after
creation. The reason is that the function integrity_recalc didn't clean up
ic->recalc_bitmap as it proceeded with recalculation.

Fix this by updating the bitmap accordingly -- the double shift serves
to rounddown.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: e61709328e78 ("dm integrity: add a bitmap mode")
Cc: stable@vger.kernel.org # v5.2+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-integrity.c