diff options
author | Frans Kaashoek <[email protected]> | 2019-08-01 15:46:50 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2019-08-01 15:46:50 -0400 |
commit | 62ece4b09e6a568ede0e3b524af959194e0cb792 (patch) | |
tree | 72553e7a6c57a3298193b288db07eb1a4eab17d0 /kernel/buf.h | |
parent | fb8a0099d48643775d0bca626af1a73a3ab618a4 (diff) | |
parent | 9c4f62e8e3e7f114c6f82a75579a815e6329d767 (diff) | |
download | xv6-labs-62ece4b09e6a568ede0e3b524af959194e0cb792.tar.gz xv6-labs-62ece4b09e6a568ede0e3b524af959194e0cb792.tar.bz2 xv6-labs-62ece4b09e6a568ede0e3b524af959194e0cb792.zip |
Merge branch 'riscv-bcache' into riscv
Diffstat (limited to 'kernel/buf.h')
-rw-r--r-- | kernel/buf.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/buf.h b/kernel/buf.h index 3266495..4a3a39d 100644 --- a/kernel/buf.h +++ b/kernel/buf.h @@ -1,5 +1,6 @@ struct buf { - int flags; + int valid; // has data been read from disk? + int disk; // does disk "own" buf? uint dev; uint blockno; struct sleeplock lock; @@ -9,6 +10,4 @@ struct buf { struct buf *qnext; // disk queue uchar data[BSIZE]; }; -#define B_VALID 0x2 // buffer has been read from disk -#define B_DIRTY 0x4 // buffer needs to be written to disk |