block: Do away with the notion of hardsect_size
[linux-block.git] / drivers / block / virtio_blk.c
index 511d4ae2d1764cb6816bd07cbc014e6bc55802cd..c4845b169464025b9f2207d3a8c6534ad1bf5452 100644 (file)
@@ -347,7 +347,7 @@ static int virtblk_probe(struct virtio_device *vdev)
                                offsetof(struct virtio_blk_config, blk_size),
                                &blk_size);
        if (!err)
-               blk_queue_hardsect_size(vblk->disk->queue, blk_size);
+               blk_queue_logical_block_size(vblk->disk->queue, blk_size);
 
        add_disk(vblk->disk);
        return 0;