]> Pileus Git - ~andy/linux/blobdiff - block/compat_ioctl.c
block: Use accessor functions for queue limits
[~andy/linux] / block / compat_ioctl.c
index 9eaa1940273a903b6fff90e1557327d92b369c57..df18a156d011b0f39bd79d70c16bf76049a2d07a 100644 (file)
@@ -766,7 +766,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
                return compat_put_int(arg, bdev_logical_block_size(bdev));
        case BLKSECTGET:
                return compat_put_ushort(arg,
-                                        bdev_get_queue(bdev)->max_sectors);
+                                        queue_max_sectors(bdev_get_queue(bdev)));
        case BLKRASET: /* compatible, but no compat_ptr (!) */
        case BLKFRASET:
                if (!capable(CAP_SYS_ADMIN))