diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-02-05 20:59:30 -0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-03-09 15:12:29 +0100 |
| commit | e75d55461871bbf5debe33f528f267e23c84a370 (patch) | |
| tree | d5da3bbeb717ee6820d7730a1bd389c8ca8353c8 /rust/kernel/gpu/git@git.tavy.me:linux-stable.git | |
| parent | 9b6098ad5b19261fd319b2637a28c69693585908 (diff) | |
dm-verity-fec: replace io_size with block_size
dm-verity's FEC implementation assumes that data_block_size ==
hash_block_size, and it accesses the FEC device in units of the same
size. Many places in the code want that size and compute it on-demand
as '1 << v->data_dev_block_bits'. However, it's actually already
available in v->fec->io_size. Rename that field to block_size,
initialize it a bit earlier, and use it in the appropriate places.
Note that while these sizes could in principle be different, that case
is not supported. So there's no need to complicate the code for it.
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
