]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity-fec: rename rounds to region_blocks
authorEric Biggers <ebiggers@kernel.org>
Fri, 6 Feb 2026 04:59:31 +0000 (20:59 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 9 Mar 2026 14:12:38 +0000 (15:12 +0100)
commit41208f3707e97976f3b1b7c36c4c094e05e5cf1d
tree766b08a380ff4b714dbd1c0eddae0175e10f5559
parente75d55461871bbf5debe33f528f267e23c84a370
dm-verity-fec: rename rounds to region_blocks

It's hard to reconcile the value stored in dm_verity_fec::rounds with
its name and documentation.  Most likely "rounds" is being used as an
alias for what is more commonly called the interleaving degree or
"number of ways".  But the interleaving is done at the byte level,
whereas the units of "rounds" are blocks.  So it's not really that.

In practice, the reason the code needs this value is that it expresses
the number of blocks in each "region" of the message data, where each
region contains the bytes from a particular index in the RS codewords.

Rename it to region_blocks to make the code a bit more understandable.

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