patch-2.4.5 linux/drivers/scsi/sr.c
Next file: linux/drivers/scsi/u14-34f.c
Previous file: linux/drivers/scsi/sd.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Sat Apr 28 11:28:08 2001
- Orig file:
v2.4.4/linux/drivers/scsi/sr.c
- Orig date:
Mon Feb 19 10:25:17 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -496,13 +496,6 @@
return 0;
}
-/*
- * do_sr_request() is the request handler function for the sr driver.
- * Its function in life is to take block device requests, and
- * translate them to SCSI commands.
- */
-
-
static int sr_detect(Scsi_Device * SDp)
{
@@ -869,16 +862,11 @@
for (cpnt = scsi_CDs, i = 0; i < sr_template.dev_max; i++, cpnt++)
if (cpnt->device == SDp) {
- kdev_t devi = MKDEV(MAJOR_NR, i);
- struct super_block *sb = get_super(devi);
-
/*
* Since the cdrom is read-only, no need to sync the device.
* We should be kind to our buffer cache, however.
*/
- if (sb)
- invalidate_inodes(sb);
- invalidate_buffers(devi);
+ invalidate_device(MKDEV(MAJOR_NR, i), 0);
/*
* Reset things back to a sane state so that one can re-load a new
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)