2.1.50 minipatch for sr.c

Manuel J. Galan (manolow@step.es)
Fri, 15 Aug 1997 02:23:17 +0100 (WET DST)


---1463811840-269167349-871608210=:15509
Content-Type: TEXT/plain; CHARSET=US-ASCII

Hi,

According to the changes proposed in ide.c and sd.c maybe this would be
suitable, too.
-----------------------------------------------------------------------
--- drivers/scsi/sr.c.orig Fri Aug 15 02:16:02 1997
+++ drivers/scsi/sr.c Fri Aug 15 02:15:17 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);

/*
-------------------------------------------------------------------------

-- 
Manuel J. Galan
manolow@step.es

---1463811840-269167349-871608210=:15509 Content-Type: APPLICATION/pgp-signature

-----BEGIN PGP MESSAGE----- Version: 2.6.3ia Comment: Requires PGP version 2.6 or later.

iQB1AgUBM/OvitLJkgqGw1hxAQEZKAL/RYq+Xb5U0bAons+FN+mkoO1O5vOovXYS lHGFOLo0VcI31D1dQiwmEXqT7PIwdQ7c5Vqk/B3X0USwcZPjU5iWbGCE2pH/pRyk B86jtGCauv8SyGM6RsNxo7VT4PXqSXuL =GHHP -----END PGP MESSAGE-----

---1463811840-269167349-871608210=:15509--