Skip to content

Commit e76e0cc

Browse files
committed
Apply editorial changes
1 parent 52cf2a1 commit e76e0cc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

extent.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ uint32_t simplefs_ext_search(struct simplefs_file_ei_block *index,
5959
}
6060
}
6161

62-
/* return 'end' if it directs to valid block
63-
* return 'boundary' if index is not found
64-
* and eiblock has remaining space
62+
/* Return 'end' if it directs to valid block.
63+
* Return 'boundary' if index is not found and eiblock has remaining space
6564
*/
6665
end_block = index->extents[end].ee_block;
6766
end_len = index->extents[end].ee_len;

file.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ static ssize_t simplefs_read(struct file *file,
311311
struct simplefs_file_ei_block *ei_block =
312312
(struct simplefs_file_ei_block *) bh->b_data;
313313

314-
315314
if (pos + len > inode->i_size)
316315
len = inode->i_size - pos;
317316

@@ -469,10 +468,10 @@ const struct address_space_operations simplefs_aops = {
469468
};
470469

471470
const struct file_operations simplefs_file_ops = {
472-
.llseek = generic_file_llseek,
473471
.owner = THIS_MODULE,
474-
.fsync = generic_file_fsync,
475472
.open = simplefs_open,
476473
.read = simplefs_read,
477474
.write = simplefs_write,
475+
.llseek = generic_file_llseek,
476+
.fsync = generic_file_fsync,
478477
};

simplefs.h

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ extern uint32_t simplefs_ext_search(struct simplefs_file_ei_block *index,
142142
/* Extract a simplefs_inode_info object from a VFS inode */
143143
#define SIMPLEFS_INODE(inode) \
144144
(container_of(inode, struct simplefs_inode_info, vfs_inode))
145+
145146
#endif /* __KERNEL__ */
146147

147148
#endif /* SIMPLEFS_H */

0 commit comments

Comments
 (0)