]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity-fec: replace {MAX,MIN}_RSN with {MIN,MAX}_ROOTS
authorEric Biggers <ebiggers@kernel.org>
Fri, 6 Feb 2026 04:59:27 +0000 (20:59 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 9 Mar 2026 14:11:59 +0000 (15:11 +0100)
commit82fbd6a3e29a329d439690cd7ccc4162c9cd8db6
treee17aabd138ee8fc74afe83772bdd06116813de82
parent05777b2800b060585d601705a8d1bb5afadc2f11
dm-verity-fec: replace {MAX,MIN}_RSN with {MIN,MAX}_ROOTS

Every time DM_VERITY_FEC_{MAX,MIN}_RSN are used, they are subtracted
from DM_VERITY_FEC_RSM to get the bounds on the number of roots.
Therefore, replace these with {MIN,MAX}_ROOTS constants which are more
directly useful.  (Note the inversion, where MAX_RSN maps to MIN_ROOTS
and MIN_RSN maps to MAX_ROOTS.)  No functional change.

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