From 45a4f324927f8fe3b7e689dd0c9a28716d0d1e93 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 16 Sep 2009 11:28:56 -0700 Subject: [PATCH] Add a little support for data writeback (not yet hooked up). --- bluesky/bluesky.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bluesky/bluesky.h b/bluesky/bluesky.h index 1d0b0b1..09d2755 100644 --- a/bluesky/bluesky.h +++ b/bluesky/bluesky.h @@ -128,7 +128,12 @@ typedef struct { * that we don't exhaust the identifier space. */ uint64_t inum; - uint64_t change_count; /* Incremented each with each change made */ + /* change_count is increased with every operation which modifies the inode, + * and can be used to determine if cached data is still valid. + * change_commit is the value of change_count when the inode was last + * committed to stable storage. */ + uint64_t change_count, change_commit; + int64_t atime; /* Microseconds since the Unix epoch */ int64_t ctime; int64_t mtime; -- 2.20.1