提交 8970df0c 创建 作者: rsc's avatar rsc

No one is going to find this inode.

There is only one ref to it -- the caller -- and no links to it.
上级 1b25f3b0
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论