patch-2.4.5 linux/drivers/ide/ide.c
Next file: linux/drivers/ide/opti621.c
Previous file: linux/drivers/ide/ide-pnp.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Tue May 1 16:05:00 2001
- Orig file:
v2.4.4/linux/drivers/ide/ide.c
- Orig date:
Wed Apr 11 19:06:12 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/ide/ide.c linux/drivers/ide/ide.c
@@ -179,6 +179,8 @@
static int ide_lock;
#endif /* __mc68000__ || CONFIG_APUS */
+int noautodma = 0;
+
/*
* ide_modules keeps track of the available IDE chipset/probe/driver modules.
*/
@@ -1762,11 +1764,7 @@
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);
- if (sb)
- invalidate_inodes(sb);
- invalidate_buffers (devp);
+ invalidate_device(devp, 1);
set_blocksize(devp, 1024);
}
drive->part[p].start_sect = 0;
@@ -1983,9 +1981,7 @@
for (p = 0; p < (1<<PARTN_BITS); ++p) {
if (drive->part[p].nr_sects > 0) {
kdev_t devp = MKDEV(hwif->major, minor+p);
- struct super_block * sb = get_super(devp);
- if (sb) invalidate_inodes(sb);
- invalidate_buffers (devp);
+ invalidate_device(devp, 0);
}
}
#ifdef CONFIG_PROC_FS
@@ -2893,6 +2889,12 @@
return 1;
}
#endif /* CONFIG_BLK_DEV_IDEDOUBLER */
+
+ if (!strcmp(s, "ide=nodma")) {
+ printk("IDE: Prevented DMA\n");
+ noautodma = 1;
+ return 1;
+ }
#ifdef CONFIG_BLK_DEV_IDEPCI
if (!strcmp(s, "ide=reverse")) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)