summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2014-08-27 14:14:52 -0400
committerRobert Morris <[email protected]>2014-08-27 14:14:52 -0400
commit12eeefc72dc31211c5f54ea64e21c8a5668f92d7 (patch)
treebd89cb30a3279f40a7a55dd64cb6212d93666158
parent2c56547272e43b483d560a61692f1e24926a82fb (diff)
downloadxv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.tar.gz
xv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.tar.bz2
xv6-labs-12eeefc72dc31211c5f54ea64e21c8a5668f92d7.zip
comments
-rw-r--r--bio.c2
-rw-r--r--fs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bio.c b/bio.c
index de1d0f2..a6cefc8 100644
--- a/bio.c
+++ b/bio.c
@@ -56,7 +56,7 @@ binit(void)
}
// Look through buffer cache for sector on device dev.
-// If not found, allocate fresh block.
+// If not found, allocate a buffer.
// In either case, return B_BUSY buffer.
static struct buf*
bget(uint dev, uint sector)
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;