diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-02-06 18:22:12 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-02-13 18:34:48 +0800 |
commit | 96747228b72509e981c146b06f652e0f17a26675 (patch) | |
tree | 27844fff5ff0ea4141ab2ca50e4041493d0646b9 /drivers/md/dm-integrity.c | |
parent | c35e03eaece71101ff6cbf776b86403860ac8cc3 (diff) | |
download | linux-stable-96747228b72509e981c146b06f652e0f17a26675.tar.gz linux-stable-96747228b72509e981c146b06f652e0f17a26675.tar.bz2 linux-stable-96747228b72509e981c146b06f652e0f17a26675.zip |
dm: Add scaffolding to change completion function signature
This patch adds temporary scaffolding so that the Crypto API
completion function can take a void * instead of crypto_async_request.
Once affected users have been converted this can be removed.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r-- | drivers/md/dm-integrity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 1388ee35571e..eefe25ed841e 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -955,9 +955,9 @@ static void xor_journal(struct dm_integrity_c *ic, bool encrypt, unsigned sectio async_tx_issue_pending_all(); } -static void complete_journal_encrypt(struct crypto_async_request *req, int err) +static void complete_journal_encrypt(crypto_completion_data_t *data, int err) { - struct journal_completion *comp = req->data; + struct journal_completion *comp = crypto_get_completion_data(data); if (unlikely(err)) { if (likely(err == -EINPROGRESS)) { complete(&comp->ic->crypto_backoff); |