diff options
Diffstat (limited to 'block/compat_ioctl.c')
-rw-r--r-- | block/compat_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index f87615dea46b..9eaa1940273a 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c | |||
@@ -763,7 +763,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
763 | case BLKBSZGET_32: /* get the logical block size (cf. BLKSSZGET) */ | 763 | case BLKBSZGET_32: /* get the logical block size (cf. BLKSSZGET) */ |
764 | return compat_put_int(arg, block_size(bdev)); | 764 | return compat_put_int(arg, block_size(bdev)); |
765 | case BLKSSZGET: /* get block device hardware sector size */ | 765 | case BLKSSZGET: /* get block device hardware sector size */ |
766 | return compat_put_int(arg, bdev_hardsect_size(bdev)); | 766 | return compat_put_int(arg, bdev_logical_block_size(bdev)); |
767 | case BLKSECTGET: | 767 | case BLKSECTGET: |
768 | return compat_put_ushort(arg, | 768 | return compat_put_ushort(arg, |
769 | bdev_get_queue(bdev)->max_sectors); | 769 | bdev_get_queue(bdev)->max_sectors); |