diff options
| author | rsc <rsc> | 2009-05-31 01:53:08 +0000 | 
|---|---|---|
| committer | rsc <rsc> | 2009-05-31 01:53:08 +0000 | 
| commit | ce72cadbe075ebe8ab9a2c8fa826277431504e9b (patch) | |
| tree | 0a3227e3b015cf22ffc408f82151ee90b58f17bb | |
| parent | 13ae8808c4ebb1c2a48abad1d16428042d943e0e (diff) | |
| download | xv6-labs-ce72cadbe075ebe8ab9a2c8fa826277431504e9b.tar.gz xv6-labs-ce72cadbe075ebe8ab9a2c8fa826277431504e9b.tar.bz2 xv6-labs-ce72cadbe075ebe8ab9a2c8fa826277431504e9b.zip | |
fix bug fix
| -rw-r--r-- | fs.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -227,7 +227,7 @@ iunlock(struct inode *ip)      panic("iunlock");    acquire(&icache.lock); -  ip->flags = 0; +  ip->flags &= ~I_BUSY;    wakeup(ip);    release(&icache.lock);  } @@ -247,7 +247,7 @@ iput(struct inode *ip)      ip->type = 0;      iupdate(ip);      acquire(&icache.lock); -    ip->flags &= ~I_BUSY; +    ip->flags = 0;      wakeup(ip);    }    ip->ref--; | 
