diff options
author | rsc <rsc> | 2007-08-28 03:31:11 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 03:31:11 +0000 |
commit | 8970df0c1bc3b69829d2ce9cc09550c7fcd48f70 (patch) | |
tree | 72a240154a5e697228092cadab3d4395a6fe5402 /fs.c | |
parent | 1b25f3b057fb61f0f099922058b52478fb1c98db (diff) | |
download | xv6-labs-8970df0c1bc3b69829d2ce9cc09550c7fcd48f70.tar.gz xv6-labs-8970df0c1bc3b69829d2ce9cc09550c7fcd48f70.tar.bz2 xv6-labs-8970df0c1bc3b69829d2ce9cc09550c7fcd48f70.zip |
No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.
Diffstat (limited to 'fs.c')
-rw-r--r-- | fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |