aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 511d4ae2d176..c4845b169464 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -347,7 +347,7 @@ static int virtblk_probe(struct virtio_device *vdev)
347 offsetof(struct virtio_blk_config, blk_size), 347 offsetof(struct virtio_blk_config, blk_size),
348 &blk_size); 348 &blk_size);
349 if (!err) 349 if (!err)
350 blk_queue_hardsect_size(vblk->disk->queue, blk_size); 350 blk_queue_logical_block_size(vblk->disk->queue, blk_size);
351 351
352 add_disk(vblk->disk); 352 add_disk(vblk->disk);
353 return 0; 353 return 0;