xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8970df0c1bc3b69829d2ce9cc09550c7fcd48f70
parent 1b25f3b057fb61f0f099922058b52478fb1c98db
Author: rsc <rsc>
Date:   Tue, 28 Aug 2007 03:31:11 +0000

No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.

Diffstat:
Mfs.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs.c b/fs.c @@ -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);