]> git.ipfire.org Git - thirdparty/linux.git/commit
dm-verity-fec: compute target region directly
authorEric Biggers <ebiggers@kernel.org>
Fri, 6 Feb 2026 04:59:37 +0000 (20:59 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 9 Mar 2026 14:13:28 +0000 (15:13 +0100)
commitca21ed4089200ff32ef0a17f58b6153499121cef
treedce3c1ca4203bee3da77496027fd2259393e3a02
parentca0da6cc096870e9e138f4c2bb78bd2560e29590
dm-verity-fec: compute target region directly

Instead of determining the target block's region by checking which block
of the k blocks being iterated over in fec_read_bufs() is equal to the
target block, instead just directly use the quotient of the division of
target_block by region_blocks.

This is the same value, just derived in a more straightforward way.

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