]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ide: fix bogus write cache comment
authorBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Fri, 10 Sep 2004 04:02:32 +0000 (21:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 10 Sep 2004 04:02:32 +0000 (21:02 -0700)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-disk.c

index fc9a8428d5cfb25ca858dd36f813768bc49b904a..6fe62957cf7cae34f22581fdc80b9e5168c7846e 100644 (file)
@@ -1607,6 +1607,8 @@ static void idedisk_setup (ide_drive_t *drive)
        if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5)))
                drive->wcache = 1;
 
+       write_cache(drive, 1);
+
        /*
         * We must avoid issuing commands a drive does not understand
         * or we may crash it. We check flush cache is supported. We also
@@ -1622,14 +1624,6 @@ static void idedisk_setup (ide_drive_t *drive)
                if (capacity > (1ULL << 28) && !ide_id_has_flush_cache_ext(id))
                        barrier = 0;
        }
-       /* Now we have barrier awareness we can be properly conservative
-          by default with other drives. We turn off write caching when
-          barrier is not available. Users can adjust this at runtime if
-          they need unsafe but fast filesystems. This will reduce the
-          performance of non cache flush supporting disks but it means
-          you get the data order guarantees the journalling fs's require */
-
-       write_cache(drive, barrier);
 
        printk(KERN_DEBUG "%s: cache flushes %ssupported\n",
                drive->name, barrier ? "" : "not ");