summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-verity.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2024-07-02 16:40:41 +0200
committerMikulas Patocka <mpatocka@redhat.com>2024-07-03 21:41:11 +0200
commite8f5e933013af36f4042fea955a00df40105643a (patch)
treef5ac6bab27ea5062356d4355f90c536928175a30 /drivers/md/dm-verity.h
parentdm-verity: always "map" the data blocks (diff)
downloadlinux-e8f5e933013af36f4042fea955a00df40105643a.tar.xz
linux-e8f5e933013af36f4042fea955a00df40105643a.zip
dm-verity: make verity_hash() take dm_verity_io instead of ahash_request
In preparation for adding shash support to dm-verity, change verity_hash() to take a pointer to a struct dm_verity_io instead of a pointer to the ahash_request embedded inside it. 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 'drivers/md/dm-verity.h')
-rw-r--r--drivers/md/dm-verity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.h b/drivers/md/dm-verity.h
index bd461c28b710..0e1dd02a916f 100644
--- a/drivers/md/dm-verity.h
+++ b/drivers/md/dm-verity.h
@@ -116,7 +116,7 @@ static inline u8 *verity_io_want_digest(struct dm_verity *v,
return io->want_digest;
}
-extern int verity_hash(struct dm_verity *v, struct ahash_request *req,
+extern int verity_hash(struct dm_verity *v, struct dm_verity_io *io,
const u8 *data, size_t len, u8 *digest, bool may_sleep);
extern int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io,