aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2022-11-14 05:29:43 +0100
committerGravatar Jens Axboe <axboe@kernel.dk> 2022-11-21 11:39:05 -0700
commit6715c98b6cf003f26b1b2f655393134e9d999a05 (patch)
treec8ff710f5c15c15dd8ed427d8e3b3d7bfba95787 /include
parentblk-crypto: don't use struct request_queue for public interfaces (diff)
downloadlinux-6715c98b6cf003f26b1b2f655393134e9d999a05.tar.gz
linux-6715c98b6cf003f26b1b2f655393134e9d999a05.tar.bz2
linux-6715c98b6cf003f26b1b2f655393134e9d999a05.zip
blk-crypto: add a blk_crypto_config_supported_natively helper
Add a blk_crypto_config_supported_natively helper that wraps __blk_crypto_cfg_supported to retrieve the crypto_profile from the request queue. With this fscrypt can stop including blk-crypto-profile.h and rely on the public consumer interface in blk-crypto.h. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20221114042944.1009870-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk-crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk-crypto.h b/include/linux/blk-crypto.h
index 561ca92e204d..a33d32f5c268 100644
--- a/include/linux/blk-crypto.h
+++ b/include/linux/blk-crypto.h
@@ -97,6 +97,8 @@ int blk_crypto_start_using_key(struct block_device *bdev,
int blk_crypto_evict_key(struct block_device *bdev,
const struct blk_crypto_key *key);
+bool blk_crypto_config_supported_natively(struct block_device *bdev,
+ const struct blk_crypto_config *cfg);
bool blk_crypto_config_supported(struct block_device *bdev,
const struct blk_crypto_config *cfg);