diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-05-23 02:23:16 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-23 02:23:16 -0400 |
commit | 3b77f777b8f1c001b63e317c4ce317292ff0ff94 (patch) | |
tree | 50870b78a433b52e04781d67ffcbd05f1a535d33 /drivers/ide/ide-disk.c | |
parent | c72758f33784e5e2a1a4bb9421ef3e6de8f9fcf3 (diff) |
ide-disk: fix missing max_sectors accessor function
The recent move to accessor functions for querying queue limits
missed an entry in ide-disk.c:
drivers/ide/ide-disk.c: In function ‘ide_disk_setup’:
drivers/ide/ide-disk.c:642: error: ‘struct request_queue’ has no member named ‘max_sectors’
Fix it.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index ad18e14043c5..c6f7fcfb9d67 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -639,7 +639,7 @@ static void ide_disk_setup(ide_drive_t *drive) | |||
639 | } | 639 | } |
640 | 640 | ||
641 | printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name, | 641 | printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name, |
642 | q->max_sectors / 2); | 642 | queue_max_sectors(q) / 2); |
643 | 643 | ||
644 | if (ata_id_is_ssd(id)) | 644 | if (ata_id_is_ssd(id)) |
645 | queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); | 645 | queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); |