blk-crypto: add a blk_crypto_config_supported_natively helper
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Nov 2022 04:29:43 +0000 (05:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Nov 2022 18:39:05 +0000 (11:39 -0700)
commit6715c98b6cf003f26b1b2f655393134e9d999a05
treec8ff710f5c15c15dd8ed427d8e3b3d7bfba95787
parentfce3caea0f241f5d34855c82c399d5e0e2d91f07
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>
block/blk-crypto.c
fs/crypto/inline_crypt.c
include/linux/blk-crypto.h