From: Theodore Ts'o Date: Sat, 9 Nov 2002 15:33:49 +0000 (-0500) Subject: unix_io.c (find_cached_block): Fixed bug which caused some clean X-Git-Tag: E2FSPROGS-1_32~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d47dfb91ef010c506e9354dec102385d8494d8f;p=thirdparty%2Fe2fsprogs.git 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. --- diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 4ebc72795..3e265c50e 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,11 @@ +2002-11-09 + + * 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 * Release of E2fsprogs 1.31 diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index e8cd880c6..1dcca4ad2 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -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;