change ip->flags&I_VALID to ip->valid
This commit is contained in:
parent
14270288b7
commit
3375df5061
2 changed files with 11 additions and 12 deletions
3
file.h
3
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue