diff options
author | Robert Morris <[email protected]> | 2014-08-27 14:14:52 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2014-08-27 14:14:52 -0400 |
commit | 12eeefc72dc31211c5f54ea64e21c8a5668f92d7 (patch) | |
tree | bd89cb30a3279f40a7a55dd64cb6212d93666158 /fs.c | |
parent | 2c56547272e43b483d560a61692f1e24926a82fb (diff) | |
download | xv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.tar.gz xv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.tar.bz2 xv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.zip |
comments
Diffstat (limited to 'fs.c')
-rw-r--r-- | fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |