fix bug fix

This commit is contained in:
rsc 2009-05-31 01:53:08 +00:00
parent 13ae8808c4
commit ce72cadbe0

4
fs.c
View file

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