Re: [PATCH 2/2] blk-crypto: add a blk_crypto_cfg_supported helper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Eric Biggers <ebiggers@xxxxxxxxxx>
- Subject: Re: [PATCH 2/2] blk-crypto: add a blk_crypto_cfg_supported helper
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Fri, 4 Nov 2022 08:32:49 +0100
- In-reply-to: <Y2S927PXuEYM7xwJ@sol.localdomain>
- References: <20221104054621.628369-1-hch@lst.de> <20221104054621.628369-3-hch@lst.de> <Y2S927PXuEYM7xwJ@sol.localdomain>
- User-agent: Mutt/1.5.17 (2007-11-01)
On Fri, Nov 04, 2022 at 12:23:07AM -0700, Eric Biggers wrote:
> > +bool blk_crypto_cfg_supported(struct block_device *bdev,
> > + const struct blk_crypto_config *cfg)
> > +{
> > + return __blk_crypto_cfg_supported(bdev_get_queue(bdev)->crypto_profile,
> > + cfg);
> > +}
>
> I think this part is too confusing, because there's already a function
> blk_crypto_config_supported() which does something slightly different.
>
> How about calling this blk_crypto_config_supported_natively() instead? It's
> kind of long, but it's much clearer.
Fine with me.
> Also, it should be defined in blk-crypto.c, next to
> blk_crypto_config_supported(), and not in blk-crypto-profile.c.
> (And declared in blk-crypto.h, not blk-crypto-profile.h.)
Ok.
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]