diff options
| author | 2026-02-05 20:59:32 -0800 | |
|---|---|---|
| committer | 2026-03-09 15:12:44 +0100 | |
| commit | 8ef45923fdcb7ec44e3a965bcbf41723e20814e4 (patch) | |
| tree | d29aca13e102cf65338d4196bf416db9428a823e /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | dm-verity-fec: rename rounds to region_blocks (diff) | |
dm-verity-fec: simplify computation of rsb
To compute 'rsb', verity_fec_decode() divides 'offset' by
'v->fec->region_blocks << v->data_dev_block_bits', then subtracts the
quotient times that divisor. That's simply the long way to do a modulo
operation, i.e. a - b * floor(a / b) instead of just a % b. Use
div64_u64_rem() to get the remainder more concisely.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
