On Wed, Dec 17, 2025 at 07:06:46AM +0100, Christoph Hellwig wrote:
> This returns the bio_crypt_ctx if CONFIG_BLK_INLINE_ENCRYPTION is enabled
> and a crypto context is attached to the bio, else NULL.
> 
> The use case is to allow safely dereferencing the context in common code
> without needed #ifdef CONFIG_BLK_INLINE_ENCRYPTION.
> 
> Signed-off-by: Christoph Hellwig <[email protected]>
> ---
>  include/linux/blk-crypto.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)

Reviewed-by: Eric Biggers <[email protected]>

- Eric

Reply via email to