]> git.baikalelectronics.ru Git - kernel.git/commit
dm integrity: fix recalculation when moving from journal mode to bitmap mode
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 7 Feb 2020 16:42:30 +0000 (11:42 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 Feb 2020 17:06:06 +0000 (12:06 -0500)
commitf96a8780461fb8024aa47893438a58debbc3a33b
tree46777deea2038eeef997f1f543144ee175b5df32
parent6a922f341862e045ad6096cda6d1c86a57d274bc
dm integrity: fix recalculation when moving from journal mode to bitmap mode

If we resume a device in bitmap mode and the on-disk format is in journal
mode, we must recalculate anything above ic->sb->recalc_sector. Otherwise,
there would be non-recalculated blocks which would cause I/O errors.

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