From f552738889f56586728d1b5d2a63cde0cf124929 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 6 Sep 2006 17:50:20 +0000 Subject: no /* */ comments --- fs.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'fs.c') diff --git a/fs.c b/fs.c index eb7b828..132fddb 100644 --- a/fs.c +++ b/fs.c @@ -24,9 +24,7 @@ iinit(void) initlock(&inode_table_lock, "inode_table"); } -/* - * allocate a disk block - */ +// Allocate a disk block. static uint balloc(uint dev) { @@ -90,11 +88,11 @@ bfree(int dev, uint b) brelse(bp); } -/* - * fetch an inode, from the in-core table if it's already - * in use, otherwise read from the disk. - * returns an inode with busy set and incremented reference count. - */ +// Find the inode with number inum on device dev +// and return an in-memory copy. Loads the inode +// from disk into the in-core table if necessary. +// The returned inode has busy set and has its ref count incremented. +// Caller must iput the return value when done with it. struct inode* iget(uint dev, uint inum) { -- cgit v1.2.3