lkml.org 
[lkml]   [1997]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.50 patch scsi/sr.c
Date
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);

/*


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.029 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site