This series contains some cleanups and optimizations for dm-verity that I've split out from my multibuffer hashing series https://lore.kernel.org/linux-crypto/20240621165922.77672-1-ebiggers@xxxxxxxxxx/. This series does not depend on any crypto API changes, so it can be applied right away. Eric Biggers (7): dm-verity: move hash algorithm setup into its own function dm-verity: move data hash mismatch handling into its own function dm-verity: make real_digest and want_digest fixed-length dm-verity: provide dma_alignment limit in io_hints dm-verity: always "map" the data blocks dm-verity: make verity_hash() take dm_verity_io instead of ahash_request dm-verity: hash blocks with shash import+finup when possible drivers/md/dm-verity-fec.c | 32 +-- drivers/md/dm-verity-fec.h | 6 +- drivers/md/dm-verity-target.c | 461 ++++++++++++++++------------------ drivers/md/dm-verity.h | 39 ++- 4 files changed, 242 insertions(+), 296 deletions(-) base-commit: 22a40d14b572deb80c0648557f4bd502d7e83826 -- 2.45.2