summaryrefslogtreecommitdiff
path: root/rust/kernel/gpu/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2026-02-05 20:59:32 -0800
committerMikulas Patocka <mpatocka@redhat.com>2026-03-09 15:12:44 +0100
commit8ef45923fdcb7ec44e3a965bcbf41723e20814e4 (patch)
treed29aca13e102cf65338d4196bf416db9428a823e /rust/kernel/gpu/git@git.tavy.me:linux-stable.git
parent41208f3707e97976f3b1b7c36c4c094e05e5cf1d (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 'rust/kernel/gpu/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions