horten the name to blk_queue_supports_integrity which is less
duplicative.
Signed-off-by: Christoph Hellwig <hch@lst.de>
bool blk_crypto_register(struct blk_crypto_profile *profile,
struct request_queue *q)
{
- if (blk_integrity_queue_supports_integrity(q)) {
+ if (blk_queue_supports_integrity(q)) {
pr_warn("Integrity and hardware inline encryption are not supported together. Disabling hardware inline encryption.\n");
return false;
}
return blk_get_integrity(bdev->bd_disk);
}
-static inline bool
-blk_integrity_queue_supports_integrity(struct request_queue *q)
+static inline bool blk_queue_supports_integrity(struct request_queue *q)
{
return q->integrity.profile;
}
{
return NULL;
}
-static inline bool
-blk_integrity_queue_supports_integrity(struct request_queue *q)
+static inline bool blk_queue_supports_integrity(struct request_queue *q)
{
return false;
}