patch-2.4.5 linux/drivers/ide/hd.c
Next file: linux/drivers/ide/hpt34x.c
Previous file: linux/drivers/ide/cy82c693.c
Back to the patch index
Back to the overall index
-  Lines: 15
-  Date:
Sat Apr 28 11:27:53 2001
-  Orig file: 
v2.4.4/linux/drivers/ide/hd.c
-  Orig date: 
Fri Feb 16 16:02:36 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/ide/hd.c linux/drivers/ide/hd.c
@@ -892,13 +892,7 @@
 
 	for (i=max_p - 1; i >=0 ; i--) {
 		int minor = start + i;
-		kdev_t devi = MKDEV(MAJOR_NR, minor);
-		struct super_block *sb = get_super(devi); 
-
-		sync_dev(devi);
-		if (sb)
-			invalidate_inodes(sb);
-		invalidate_buffers(devi);
+		invalidate_device(MKDEV(MAJOR_NR, minor), 1);
 		gdev->part[minor].start_sect = 0;
 		gdev->part[minor].nr_sects = 0;
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)