diff -ur linux-2.5.4/drivers/ide/ide-disk.c linux/drivers/ide/ide-disk.c --- linux-2.5.4/drivers/ide/ide-disk.c Wed Feb 13 02:20:38 2002 +++ linux/drivers/ide/ide-disk.c Wed Feb 13 01:58:41 2002 @@ -890,8 +890,6 @@ static void idedisk_add_settings(ide_drive_t *drive) { struct hd_driveid *id = drive->id; - int major = HWIF(drive)->major; - int minor = drive->select.b.unit << PARTN_BITS; ide_add_setting(drive, "bios_cyl", SETTING_RW, -1, -1, TYPE_INT, 0, 65535, 1, 1, &drive->bios_cyl, NULL); ide_add_setting(drive, "bios_head", SETTING_RW, -1, -1, TYPE_BYTE, 0, 255, 1, 1, &drive->bios_head, NULL); diff -ur linux-2.5.4/drivers/ide/ide-probe.c linux/drivers/ide/ide-probe.c --- linux-2.5.4/drivers/ide/ide-probe.c Wed Feb 13 02:20:38 2002 +++ linux/drivers/ide/ide-probe.c Wed Feb 13 02:00:52 2002 @@ -788,7 +788,7 @@ static void init_gendisk (ide_hwif_t *hwif) { struct gendisk *gd; - unsigned int unit, units, minors; + unsigned int unit, units, minors, i; extern devfs_handle_t ide_devfs_handle; #if 1 @@ -818,10 +818,10 @@ memset(gd->part, 0, minors * sizeof(struct hd_struct)); - for (unit = 0; unit < minors; unit++) { - blksize_size[hwif->major][unit] = BLOCK_SIZE; + for (i = 0; i < minors; ++i) + blksize_size[hwif->major][i] = BLOCK_SIZE; + for (unit = 0; unit < units; ++unit) hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; - } gd->major = hwif->major; /* our major device number */ gd->major_name = IDE_MAJOR_NAME; /* treated special in genhd.c */ diff -ur linux-2.5.4/mm/filemap.c linux/mm/filemap.c --- linux-2.5.4/mm/filemap.c Wed Feb 13 02:20:38 2002 +++ linux/mm/filemap.c Wed Feb 13 01:56:58 2002 @@ -1120,7 +1120,7 @@ * * Asynchronous read-ahead risks: * ------------------------------ - * In order to maximize overlapping, we must start some asynchronous read + * In order to maximize overlapping, we must start some asynchronous read * request from the device, as soon as possible. * We must be very careful about: * - The number of effective pending IO read requests. @@ -1799,8 +1799,7 @@ { unsigned long ra_window; - ra_window = MAX_READAHEAD; - ra_window = CLUSTER_OFFSET(ra_window + CLUSTER_PAGES - 1); + ra_window = CLUSTER_OFFSET(MAX_READAHEAD + CLUSTER_PAGES - 1); /* vm_raend is zero if we haven't read ahead in this area yet. */ if (vma->vm_raend == 0)