Message ID | 8761hh5f64.fsf@elisp.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/extent_io.c b/extent_io.c index a127e54..1df377d 100644 --- a/extent_io.c +++ b/extent_io.c @@ -552,7 +552,7 @@ static int free_some_buffers(struct extent_io_tree *tree) list_for_each_safe(node, next, &tree->lru) { eb = list_entry(node, struct extent_buffer, lru); - if (eb->refs == 1) { + if (eb->refs == 1 && !(eb->flags & EXTENT_DIRTY)) { free_extent_buffer(eb); if (tree->cache_size < cache_hard_max) break;