]> www.infradead.org Git - users/hch/block.git/commitdiff
block: rename blk_integrity_queue_supports_integrity
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 10:37:55 +0000 (12:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 Jun 2021 06:12:03 +0000 (08:12 +0200)
Shorten the name to blk_queue_supports_integrity which is less
duplicative and more expressive.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/keyslot-manager.c
include/linux/blkdev.h

index 2c4a55bea6ca1e6a4edfbc49154e0f9f52bf86b1..434c45ed882f26b4a5eb5691ab10fb279dc45872 100644 (file)
@@ -439,7 +439,7 @@ EXPORT_SYMBOL_GPL(blk_ksm_destroy);
 
 bool blk_ksm_register(struct blk_keyslot_manager *ksm, 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;
        }
index f5f8cd92936920c718be5e9b25740d5c268c5ec0..91c40bc7552043428b56cf9df3c97b4d12a1f1a7 100644 (file)
@@ -1700,7 +1700,7 @@ struct blk_integrity *bdev_get_integrity(struct block_device *bdev)
 }
 
 static inline bool
-blk_integrity_queue_supports_integrity(struct request_queue *q)
+blk_queue_supports_integrity(struct request_queue *q)
 {
        return q->integrity.profile;
 }
@@ -1785,8 +1785,7 @@ static inline struct blk_integrity *blk_get_integrity(struct gendisk *disk)
 {
        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;
 }