diff options
author | 2024-07-02 16:39:13 +0200 | |
---|---|---|
committer | 2024-07-03 21:33:17 +0200 | |
commit | a7ddb3d49d16e1774b4d5b814d3469ee9c3830c0 (patch) | |
tree | 7d0aaa112f179be315d8bfb9000dda00370c5cd3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm-verity: move data hash mismatch handling into its own function (diff) | |
download | wireguard-linux-a7ddb3d49d16e1774b4d5b814d3469ee9c3830c0.tar.xz wireguard-linux-a7ddb3d49d16e1774b4d5b814d3469ee9c3830c0.zip |
dm-verity: make real_digest and want_digest fixed-length
Change the digest fields in struct dm_verity_io from variable-length to
fixed-length, since their maximum length is fixed at
HASH_MAX_DIGESTSIZE, i.e. 64 bytes, which is not too big. This is
simpler and makes the fields a bit faster to access.
(HASH_MAX_DIGESTSIZE did not exist when this code was written, which may
explain why it wasn't used.)
This makes the verity_io_real_digest() and verity_io_want_digest()
functions trivial, but this patch leaves them in place temporarily since
most of their callers will go away in a later patch anyway.
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions