Messages in this thread Patch in this message | | | From | Keith Owens <> | Subject | 2.1.50 patch scsi/sr.c | Date | Sat, 16 Aug 1997 23:15:55 +1000 |
| |
diff -ur 2.1.50/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c --- 2.1.50/linux/drivers/scsi/sr.c Sat Apr 12 15:12:34 1997 +++ linux/drivers/scsi/sr.c Sat Aug 16 21:29:32 1997 @@ -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); /*
| |