diff options
author | Theodore Ts'o <tytso@mit.edu> | 2002-11-09 10:33:49 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2002-11-09 10:33:49 -0500 |
commit | 1d47dfb91ef010c506e9354dec102385d8494d8f (patch) | |
tree | 9458120b48a6d340df3df20a5b19d3131efdb5fb /lib/ext2fs | |
parent | cbc25bc70b90db04d132b763f051fd5b11d516cc (diff) | |
download | e2fsprogs-1d47dfb91ef010c506e9354dec102385d8494d8f.tar.gz |
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.
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/ChangeLog | 8 | ||||
-rw-r--r-- | lib/ext2fs/unix_io.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 4ebc7279..3e265c50 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -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 diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index e8cd880c..1dcca4ad 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; |