Replace I_BUSY with sleep locks
This commit is contained in:
parent
2adb7c21dc
commit
dec637bc59
7 changed files with 20 additions and 21 deletions
4
file.h
4
file.h
|
@ -14,7 +14,8 @@ struct inode {
|
|||
uint dev; // Device number
|
||||
uint inum; // Inode number
|
||||
int ref; // Reference count
|
||||
int flags; // I_BUSY, I_VALID
|
||||
struct sleeplock lock;
|
||||
int flags; // I_VALID
|
||||
|
||||
short type; // copy of disk inode
|
||||
short major;
|
||||
|
@ -23,7 +24,6 @@ struct inode {
|
|||
uint size;
|
||||
uint addrs[NDIRECT+1];
|
||||
};
|
||||
#define I_BUSY 0x1
|
||||
#define I_VALID 0x2
|
||||
|
||||
// table mapping major device number to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue