Skip to content

Commit

Permalink
ide-disk: fix missing max_sectors accessor function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
martinkpetersen authored and Jens Axboe committed May 23, 2009
1 parent c72758f commit 3b77f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static void ide_disk_setup(ide_drive_t *drive)
}

printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name,
q->max_sectors / 2);
queue_max_sectors(q) / 2);

if (ata_id_is_ssd(id))
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);
Expand Down

0 comments on commit 3b77f77

Please sign in to comment.