88#include <linux/statfs.h>
99
1010#include "simplefs.h"
11+
1112struct dentry * simplefs_mount (struct file_system_type * fs_type ,
1213 int flags ,
1314 const char * dev_name ,
@@ -209,13 +210,13 @@ int simplefs_fill_super(struct super_block *sb, void *data, int silent)
209210 struct inode * root_inode = NULL ;
210211 int ret = 0 , i ;
211212
212- /* Init sb */
213+ /* Initialize the superblock */
213214 sb -> s_magic = SIMPLEFS_MAGIC ;
214215 sb_set_blocksize (sb , SIMPLEFS_BLOCK_SIZE );
215216 sb -> s_maxbytes = SIMPLEFS_MAX_FILESIZE ;
216217 sb -> s_op = & simplefs_super_ops ;
217218
218- /* Read sb from disk */
219+ /* Read the superblock from disk */
219220 bh = sb_bread (sb , SIMPLEFS_SB_BLOCK_NR );
220221 if (!bh )
221222 return - EIO ;
@@ -229,7 +230,7 @@ int simplefs_fill_super(struct super_block *sb, void *data, int silent)
229230 goto release ;
230231 }
231232
232- /* Alloc sb_info */
233+ /* Allocate sb_info */
233234 sbi = kzalloc (sizeof (struct simplefs_sb_info ), GFP_KERNEL );
234235 if (!sbi ) {
235236 ret = - ENOMEM ;
@@ -247,7 +248,7 @@ int simplefs_fill_super(struct super_block *sb, void *data, int silent)
247248
248249 brelse (bh );
249250
250- /* Alloc and copy ifree_bitmap */
251+ /* Allocate and copy ifree_bitmap */
251252 sbi -> ifree_bitmap =
252253 kzalloc (sbi -> nr_ifree_blocks * SIMPLEFS_BLOCK_SIZE , GFP_KERNEL );
253254 if (!sbi -> ifree_bitmap ) {
@@ -270,7 +271,7 @@ int simplefs_fill_super(struct super_block *sb, void *data, int silent)
270271 brelse (bh );
271272 }
272273
273- /* Alloc and copy bfree_bitmap */
274+ /* Allocate and copy bfree_bitmap */
274275 sbi -> bfree_bitmap =
275276 kzalloc (sbi -> nr_bfree_blocks * SIMPLEFS_BLOCK_SIZE , GFP_KERNEL );
276277 if (!sbi -> bfree_bitmap ) {
0 commit comments