]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/ioctl.c
block: Do away with the notion of hardsect_size
[mirror_ubuntu-bionic-kernel.git] / block / ioctl.c
index ad474d4bbccee0232303c24ae381ade156ae44aa..7aa97f65da82e5a46c10c0876f9da7d16c8cbafc 100644 (file)
@@ -311,7 +311,7 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
        case BLKBSZGET: /* get the logical block size (cf. BLKSSZGET) */
                return put_int(arg, block_size(bdev));
        case BLKSSZGET: /* get block device hardware sector size */
-               return put_int(arg, bdev_hardsect_size(bdev));
+               return put_int(arg, bdev_logical_block_size(bdev));
        case BLKSECTGET:
                return put_ushort(arg, bdev_get_queue(bdev)->max_sectors);
        case BLKRASET: