fix bug fix
This commit is contained in:
parent
13ae8808c4
commit
ce72cadbe0
1 changed files with 2 additions and 2 deletions
4
fs.c
4
fs.c
|
@ -227,7 +227,7 @@ iunlock(struct inode *ip)
|
||||||
panic("iunlock");
|
panic("iunlock");
|
||||||
|
|
||||||
acquire(&icache.lock);
|
acquire(&icache.lock);
|
||||||
ip->flags = 0;
|
ip->flags &= ~I_BUSY;
|
||||||
wakeup(ip);
|
wakeup(ip);
|
||||||
release(&icache.lock);
|
release(&icache.lock);
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ iput(struct inode *ip)
|
||||||
ip->type = 0;
|
ip->type = 0;
|
||||||
iupdate(ip);
|
iupdate(ip);
|
||||||
acquire(&icache.lock);
|
acquire(&icache.lock);
|
||||||
ip->flags &= ~I_BUSY;
|
ip->flags = 0;
|
||||||
wakeup(ip);
|
wakeup(ip);
|
||||||
}
|
}
|
||||||
ip->ref--;
|
ip->ref--;
|
||||||
|
|
Loading…
Reference in a new issue