Skip to content

Commit 5e11fa7

Browse files
committed
Apply editorial changes
1 parent d5ca0eb commit 5e11fa7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

extent.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ uint32_t simplefs_ext_search(struct simplefs_file_ei_block *index,
3838
boundary = end + 1;
3939
}
4040

41-
if (boundary == 0) {
42-
/* No used file index */
41+
if (boundary == 0) /* No used file index */
4342
return boundary;
44-
}
4543

4644
/* try finding target block using binary search */
4745
start = 0;

super.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/statfs.h>
99

1010
#include "simplefs.h"
11+
1112
struct 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

Comments
 (0)