summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
don't let dirty blocks be evicted from cache!
Diffstat (limited to 'log.c')
-rw-r--r--log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/log.c b/log.c
index 5b827de..1814edc 100644
--- a/log.c
+++ b/log.c
@@ -177,6 +177,7 @@ log_write(struct buf *b)
brelse(lbuf);
if (i == log.lh.n)
log.lh.n++;
+ b->flags |= B_DIRTY; // XXX prevent eviction
}
//PAGEBREAK!