]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity-fec: use standard names for Reed-Solomon parameters
authorEric Biggers <ebiggers@kernel.org>
Fri, 6 Feb 2026 04:59:28 +0000 (20:59 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 9 Mar 2026 14:12:07 +0000 (15:12 +0100)
commitf34ebde14c7c23fa9844cc5c03209048510fd686
treeb483f983bfbd3089f213470bad3baa7b3d325f21
parent82fbd6a3e29a329d439690cd7ccc4162c9cd8db6
dm-verity-fec: use standard names for Reed-Solomon parameters

"RS(n, k)" is by far the most common and standard notation for
describing Reed-Solomon codes.  Each RS codeword consists of 'n'
symbols, divided into 'k' message symbols and 'n - k' parity symbols.
'n - k' is also the number of roots of the generator polynomial.

dm-verity uses "RS(M, N)" instead.  I haven't been able to find any
other source that uses this convention.  This quirk makes the code
harder to understand than necessary, especially due to dm-verity's 'N'
meaning something different from the standard 'n'.

Therefore, update dm-verity-fec.c and dm-verity-fec.h to use the
standard parameter names.  No functional changes.

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