patch-2.1.51 linux/drivers/scsi/sr.c
Next file: linux/fs/Config.in
Previous file: linux/drivers/scsi/mesh.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Aug 14 20:55:14 1997
- Orig file:
v2.1.50/linux/drivers/scsi/sr.c
- Orig date:
Mon Apr 7 11:35:30 1997
diff -u --recursive --new-file v2.1.50/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -1007,12 +1007,13 @@
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.
*/
- invalidate_inodes(devi);
+ if (sb) invalidate_inodes(sb);
invalidate_buffers(devi);
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov