From 12eeefc72dc31211c5f54ea64e21c8a5668f92d7 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 27 Aug 2014 14:14:52 -0400 Subject: comments --- fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs.c') diff --git a/fs.c b/fs.c index 7621d08..7af93d2 100644 --- a/fs.c +++ b/fs.c @@ -321,7 +321,7 @@ iput(struct inode *ip) { acquire(&icache.lock); if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){ - // inode has no links: truncate and free inode. + // inode has no links and no other references: truncate and free inode. if(ip->flags & I_BUSY) panic("iput busy"); ip->flags |= I_BUSY; -- cgit v1.2.3