summaryrefslogtreecommitdiff
path: root/buf.h
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-12 22:34:13 +0000
committerrtm <rtm>2006-08-12 22:34:13 +0000
commitcd93074e5bed8fdbc84f2960c3219c7cf791b020 (patch)
tree1c08629ac66cb608ed03601ca0edce0170f71546 /buf.h
parent22bac2cb9d0b8050573a4b5c6cb5d8f460ee4167 (diff)
downloadxv6-labs-cd93074e5bed8fdbc84f2960c3219c7cf791b020.tar.gz
xv6-labs-cd93074e5bed8fdbc84f2960c3219c7cf791b020.tar.bz2
xv6-labs-cd93074e5bed8fdbc84f2960c3219c7cf791b020.zip
LRU disk cache replacement
Diffstat (limited to 'buf.h')
-rw-r--r--buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buf.h b/buf.h
index 7ab352a..a2a3ec1 100644
--- a/buf.h
+++ b/buf.h
@@ -2,6 +2,8 @@ struct buf {
int flags;
uint dev;
uint sector;
+ struct buf *prev;
+ struct buf *next;
uchar data[512];
};
#define B_BUSY 0x1