don't let dirty blocks be evicted from cache!
This commit is contained in:
parent
38eee5bca7
commit
12abb1a561
4 changed files with 15 additions and 4 deletions
1
log.c
1
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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue