diff options
Diffstat (limited to 'block/blk-integrity.c')
-rw-r--r-- | block/blk-integrity.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/block/blk-integrity.c b/block/blk-integrity.c index 7ac17160ab69..3a83a7d08177 100644 --- a/block/blk-integrity.c +++ b/block/blk-integrity.c | |||
@@ -154,10 +154,10 @@ int blk_integrity_compare(struct gendisk *gd1, struct gendisk *gd2) | |||
154 | if (!b1 || !b2) | 154 | if (!b1 || !b2) |
155 | return -1; | 155 | return -1; |
156 | 156 | ||
157 | if (b1->sector_size != b2->sector_size) { | 157 | if (b1->interval != b2->interval) { |
158 | printk(KERN_ERR "%s: %s/%s sector sz %u != %u\n", __func__, | 158 | pr_err("%s: %s/%s protection interval %u != %u\n", |
159 | gd1->disk_name, gd2->disk_name, | 159 | __func__, gd1->disk_name, gd2->disk_name, |
160 | b1->sector_size, b2->sector_size); | 160 | b1->interval, b2->interval); |
161 | return -1; | 161 | return -1; |
162 | } | 162 | } |
163 | 163 | ||
@@ -407,7 +407,7 @@ int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) | |||
407 | kobject_uevent(&bi->kobj, KOBJ_ADD); | 407 | kobject_uevent(&bi->kobj, KOBJ_ADD); |
408 | 408 | ||
409 | bi->flags |= INTEGRITY_FLAG_READ | INTEGRITY_FLAG_WRITE; | 409 | bi->flags |= INTEGRITY_FLAG_READ | INTEGRITY_FLAG_WRITE; |
410 | bi->sector_size = queue_logical_block_size(disk->queue); | 410 | bi->interval = queue_logical_block_size(disk->queue); |
411 | disk->integrity = bi; | 411 | disk->integrity = bi; |
412 | } else | 412 | } else |
413 | bi = disk->integrity; | 413 | bi = disk->integrity; |