Skip to content
Snippets Groups Projects
Commit 8970df0c authored by rsc's avatar rsc
Browse files

No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.
parent 1b25f3b0
No related branches found
No related tags found
No related merge requests found
......@@ -243,12 +243,12 @@ iput(struct inode *ip)
panic("iput busy");
ip->flags |= I_BUSY;
release(&icache.lock);
// XXX convince rsc that no one will come find this inode.
itrunc(ip);
ip->type = 0;
iupdate(ip);
acquire(&icache.lock);
ip->flags &= ~I_BUSY;
wakeup(ip);
}
ip->ref--;
release(&icache.lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment