patch-2.4.17 linux/drivers/scsi/megaraid.c
Next file: linux/drivers/scsi/ncr53c8xx.c
Previous file: linux/drivers/scsi/ide-scsi.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/drivers/scsi/megaraid.c
- Orig date:
Thu Oct 25 20:53:51 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/drivers/scsi/megaraid.c linux/drivers/scsi/megaraid.c
@@ -4296,15 +4296,7 @@
int heads, cyls, sectors;
int capacity = disk->capacity;
- int ma = MAJOR(dev);
- int mi = (MINOR(dev) & ~0xf);
-
- int block = 1024;
-
- if(blksize_size[ma])
- block = blksize_size[ma][mi];
-
- if(!(bh = bread(MKDEV(ma,mi), 0, block)))
+ if(!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev)&~0xf), 0, block_size(dev))))
return -1;
if( *(unsigned short *)(bh->b_data + 510) == 0xAA55 ) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)