]> Devi Nivas Git - cs3210-lab1.git/commitdiff
xx
authorRobert Morris <rtm@csail.mit.edu>
Thu, 28 Aug 2014 21:04:47 +0000 (17:04 -0400)
committerRobert Morris <rtm@csail.mit.edu>
Thu, 28 Aug 2014 21:04:47 +0000 (17:04 -0400)
fs.c
param.h

diff --git a/fs.c b/fs.c
index 7af93d2e003a14accce1701284921a0c030c8345..1803cb489d8e9a1e3d0cb4bdc82956b49e8a9062 100644 (file)
--- 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 and no other references: truncate and free inode.
+    // inode has no links and no other references: truncate and free.
     if(ip->flags & I_BUSY)
       panic("iput busy");
     ip->flags |= I_BUSY;
diff --git a/param.h b/param.h
index bdac60c9b929372e36ca48dc3278f211834e23a4..8e007ca3f67e46d1c02bc7734a1d02916c8dad5d 100644 (file)
--- a/param.h
+++ b/param.h
@@ -9,5 +9,5 @@
 #define MAXARG       32  // max exec arguments
 #define MAXOPBLOCKS  10  // max # of blocks any FS op writes
 #define LOGSIZE      (MAXOPBLOCKS*3)  // max data sectors in on-disk log
-#define NBUF         (MAXOPBLOCKS*3)  // size of disk block cache (>= LOGSIZE)
+#define NBUF         (MAXOPBLOCKS*3)  // size of disk block cache