summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2017-08-08 13:34:13 -0400
committerRobert Morris <[email protected]>2017-08-08 13:34:13 -0400
commit3375df5061cefd188fefbc55cf57b066d7ed5da5 (patch)
treea674897bdb47595b97824a3203bdb3bf8e56b9d0 /file.h
parent14270288b7e5327832cdf6a8d9da52ef58fce652 (diff)
downloadxv6-labs-3375df5061cefd188fefbc55cf57b066d7ed5da5.tar.gz
xv6-labs-3375df5061cefd188fefbc55cf57b066d7ed5da5.tar.bz2
xv6-labs-3375df5061cefd188fefbc55cf57b066d7ed5da5.zip
change ip->flags&I_VALID to ip->valid
Diffstat (limited to 'file.h')
-rw-r--r--file.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/file.h b/file.h
index 22a6803..73a8e67 100644
--- a/file.h
+++ b/file.h
@@ -15,7 +15,7 @@ struct inode {
uint inum; // Inode number
int ref; // Reference count
struct sleeplock lock;
- int flags; // I_VALID
+ int valid; // remainder has been read from disk?
short type; // copy of disk inode
short major;
@@ -24,7 +24,6 @@ struct inode {
uint size;
uint addrs[NDIRECT+1];
};
-#define I_VALID 0x2
// table mapping major device number to
// device functions