patch-2.4.15 linux/drivers/scsi/aic7xxx/aic7xxx_linux.c
Next file: linux/drivers/scsi/aic7xxx/aic7xxx_linux_pci.c
Previous file: linux/drivers/scsi/aha152x.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Nov 21 14:05:29 2001
- Orig file:
v2.4.14/linux/drivers/scsi/aic7xxx/aic7xxx_linux.c
- Orig date:
Mon Nov 5 15:55:31 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/scsi/aic7xxx/aic7xxx_linux.c linux/drivers/scsi/aic7xxx/aic7xxx_linux.c
@@ -129,6 +129,7 @@
#include "../sd.h" /* For geometry detection */
#include <linux/mm.h> /* For fetching system memory size */
+#include <linux/blk.h>
/*
* To generate the correct addresses for the controller to issue
@@ -2742,7 +2743,7 @@
struct buffer_head *bh;
ahc = *((struct ahc_softc **)disk->device->host->hostdata);
- bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, 1024);
+ bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block_size(dev));
if (bh) {
ret = scsi_partsize(bh, disk->capacity,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)