patch-2.1.50 linux/fs/devices.c
Next file: linux/fs/inode.c
Previous file: linux/fs/dcache.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Aug 12 17:15:15 1997
- Orig file:
v2.1.49/linux/fs/devices.c
- Orig date:
Mon Aug 4 16:25:38 1997
diff -u --recursive --new-file v2.1.49/linux/fs/devices.c linux/fs/devices.c
@@ -198,6 +198,7 @@
{
int i;
struct file_operations * fops;
+ struct super_block * sb;
i = MAJOR(dev);
if (i >= MAX_BLKDEV || (fops = blkdevs[i].fops) == NULL)
@@ -210,7 +211,8 @@
printk(KERN_DEBUG "VFS: Disk change detected on device %s\n",
kdevname(dev));
- if (invalidate_inodes(dev))
+ sb = get_super(dev);
+ if (sb && invalidate_inodes(sb))
printk("VFS: busy inodes on changed media..\n");
invalidate_buffers(dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov