patch-2.1.50 linux/drivers/block/ide.c
Next file: linux/drivers/char/Config.in
Previous file: linux/arch/i386/lib/checksum.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Aug 12 18:21:15 1997
- Orig file:
v2.1.49/linux/drivers/block/ide.c
- Orig date:
Thu Jun 26 12:33:38 1997
diff -u --recursive --new-file v2.1.49/linux/drivers/block/ide.c linux/drivers/block/ide.c
@@ -1611,8 +1611,10 @@
for (p = 0; p < (1<<PARTN_BITS); ++p) {
if (drive->part[p].nr_sects > 0) {
kdev_t devp = MKDEV(major, minor+p);
+ struct super_block * sb = get_super(devp);
fsync_dev (devp);
- invalidate_inodes (devp);
+ if (sb)
+ invalidate_inodes(sb);
invalidate_buffers (devp);
}
drive->part[p].start_sect = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov