]> git.ipfire.org Git - thirdparty/linux.git/commit
dm-verity-fec: warn even when there were no errors
authorEric Biggers <ebiggers@kernel.org>
Fri, 20 Mar 2026 21:15:08 +0000 (14:15 -0700)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 23 Mar 2026 16:50:52 +0000 (17:50 +0100)
commit0e4c1eb59909ddaef19cd997e646d5d1ce251a6c
tree982444f08fa1ebfd3e9aae3e03241d207a3fea8c
parent23e6e57a93bcabe86d5f0eab1df0c44706ab18f3
dm-verity-fec: warn even when there were no errors

Currently FEC logs a warning message if at least one error was
corrected, or an error message if there were uncorrectable errors.
However, it doesn't log anything if there were no errors.

"No errors" is actually unexpected, though, considering that dm-verity
calls verity_fec_decode() only when a block's digest doesn't match.

If there were to ever be a bug where verity_fec_decode() is called on
blocks with the correct digest, then there would be no indication in the
log that FEC is running and degrading performance.

Therefore, let's log the warning message even when there were no errors.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-verity-fec.c