change ip->flags&I_VALID to ip->valid

This commit is contained in:
Robert Morris 2017-08-08 13:34:13 -04:00
parent 14270288b7
commit 3375df5061
2 changed files with 11 additions and 12 deletions

3
file.h
View file

@ -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