@@ -78,8 +78,8 @@ static int simplefs_file_get_block(struct inode *inode,
7878 return ret ;
7979}
8080
81- /* Called by the page cache to read a page from the physical disk and map it in
82- * memory.
81+ /* Called by the page cache to read a page from the physical disk and map it
82+ * into memory.
8383 */
8484#if LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 19 , 0 )
8585static void simplefs_readahead (struct readahead_control * rac )
@@ -101,9 +101,9 @@ static int simplefs_writepage(struct page *page, struct writeback_control *wbc)
101101 return block_write_full_page (page , simplefs_file_get_block , wbc );
102102}
103103
104- /* Called by the VFS when a write() syscall occurs on file before writing the
105- * data in the page cache. This functions checks if the write will be able to
106- * complete and allocates the necessary blocks through block_write_begin().
104+ /* Called by the VFS when a write() syscall is made on a file, before writing
105+ * the data into the page cache. This function checks if the write operation
106+ * can complete and allocates the necessary blocks through block_write_begin().
107107 */
108108#if LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 19 , 0 )
109109static int simplefs_write_begin (struct file * file ,
@@ -152,7 +152,7 @@ static int simplefs_write_begin(struct file *file,
152152}
153153
154154/* Called by the VFS after writing data from a write() syscall to the page
155- * cache. This functions updates inode metadata and truncates the file if
155+ * cache. This function updates inode metadata and truncates the file if
156156 * necessary.
157157 */
158158static int simplefs_write_end (struct file * file ,
0 commit comments