diff options
author | Robert Morris <[email protected]> | 2014-08-28 05:57:47 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2014-08-28 05:57:47 -0400 |
commit | 48aa917403de1599a02924e429a9f43ea31e9cc1 (patch) | |
tree | 037648a21b395eacdd2d716a33cfc95e14ff0a61 /bio.c | |
parent | 71453f72f285a17ccf0520b9dbdafdc701ff2f4a (diff) | |
download | xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.tar.gz xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.tar.bz2 xv6-labs-48aa917403de1599a02924e429a9f43ea31e9cc1.zip |
i think this is a working concurrent logging scheme
Diffstat (limited to 'bio.c')
-rw-r--r-- | bio.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -80,6 +80,8 @@ bget(uint dev, uint sector) } // Not cached; recycle some non-busy and clean buffer. + // "clean" because B_DIRTY and !B_BUSY means log.c + // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ b->dev = dev; |