]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
unix_io.c (find_cached_block): Fixed bug which caused some clean
authorTheodore Ts'o <tytso@mit.edu>
Sat, 9 Nov 2002 15:33:49 +0000 (10:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 9 Nov 2002 15:33:49 +0000 (10:33 -0500)
blocks to be erroneously marked as dirty, so they would
get written back to the disk before they are evicted from
the cache.  Harmless, but it slows down e2fsck
significantly.

lib/ext2fs/ChangeLog
lib/ext2fs/unix_io.c

index 4ebc72795fe34ff0142421b002e315f5991fa17a..3e265c50e85ef2972e062093d4621d628b265777 100644 (file)
@@ -1,3 +1,11 @@
+2002-11-09    <tytso@snap.thunk.org>
+
+       * unix_io.c (find_cached_block): Fixed bug which caused some clean
+               blocks to be erroneously marked as dirty, so they would
+               get written back to the disk before they are evicted from
+               the cache.  Harmless, but it slows down e2fsck
+               significantly.
+
 2002-11-08  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.31
index e8cd880c666cda99e18099fa22afff18646ba902..1dcca4ad28687fcbdd3ab0403ec4506841fdc3b2 100644 (file)
@@ -252,6 +252,7 @@ static struct unix_cache *find_cached_block(io_channel channel,
                                      cache->block, 1, cache->buf);
        }
        cache->in_use = 1;
+       cache->dirty = 0;
        cache->block = block;
        cache->access_time = ++data->access_time;
        return cache;