don't let dirty blocks be evicted from cache!

This commit is contained in:
Robert Morris 2011-10-14 10:23:23 -04:00
parent 38eee5bca7
commit 12abb1a561
4 changed files with 15 additions and 4 deletions

1
log.c
View file

@ -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!