Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.
  • Loading branch information
rsc committed Aug 28, 2007
1 parent 1b25f3b commit 8970df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8970df0

Please sign in to comment.