f2fs: the name of a struct is wrong in a comment.
authorYang Hubin <yanghb2019@lzu.edu.cn>
Sat, 4 Nov 2023 07:45:01 +0000 (00:45 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 17 Nov 2023 17:30:54 +0000 (09:30 -0800)
The macro SUMMARY_SIZE represents the size of the struct f2fs_summary,

instead of the size of the struct summary.

Signed-off-by: Yang Hubin <yanghb2019@lzu.edu.cn>
Signed-off-by: Qian Haolai <qianhl2023@lzu.edu.cn>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/linux/f2fs_fs.h

index 039fe0ce8d83d1d7ca80c306f4008f2a56713736..053137a0fe45678d0d2319f13953c2bbc77a588a 100644 (file)
@@ -441,7 +441,7 @@ struct f2fs_sit_block {
  * ex) data_blkaddr = (block_t)(nodepage_start_address + ofs_in_node)
  */
 #define ENTRIES_IN_SUM         (F2FS_BLKSIZE / 8)
-#define        SUMMARY_SIZE            (7)     /* sizeof(struct summary) */
+#define        SUMMARY_SIZE            (7)     /* sizeof(struct f2fs_summary) */
 #define        SUM_FOOTER_SIZE         (5)     /* sizeof(struct summary_footer) */
 #define SUM_ENTRY_SIZE         (SUMMARY_SIZE * ENTRIES_IN_SUM)