]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - block/blk-integrity.c
BCM270X_DT: Add bcm2708-rpi-0-w.dts
[mirror_ubuntu-zesty-kernel.git] / block / blk-integrity.c
index 319f2e4f4a8b39c09f487e641b65feea4ae149a3..478f572cb1e7d6bb78c4dcbbf650012107c6e1a0 100644 (file)
@@ -412,7 +412,8 @@ void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template
 
        bi->flags = BLK_INTEGRITY_VERIFY | BLK_INTEGRITY_GENERATE |
                template->flags;
-       bi->interval_exp = ilog2(queue_logical_block_size(disk->queue));
+       bi->interval_exp = template->interval_exp ? :
+               ilog2(queue_logical_block_size(disk->queue));
        bi->profile = template->profile ? template->profile : &nop_profile;
        bi->tuple_size = template->tuple_size;
        bi->tag_size = template->tag_size;