{
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;
#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