[PATCH] f2fs: the name of a struct is wrong in a comment.

dslab@lzu.edu.cn posted 1 patch 2 years, 1 month ago
There is a newer version of this series
include/linux/f2fs_fs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] f2fs: the name of a struct is wrong in a comment.
Posted by dslab@lzu.edu.cn 2 years, 1 month ago
From: Yang Hubin <yanghb2019@lzu.edu.cn>

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>
---
 include/linux/f2fs_fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index a82a4bb6ce68..2ef6ad75edb6 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -430,7 +430,7 @@ struct f2fs_sit_block {
  * ex) data_blkaddr = (block_t)(nodepage_start_address + ofs_in_node)
  */
 #define ENTRIES_IN_SUM		512
-#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)
 
-- 
2.25.1
Re: [PATCH] f2fs: the name of a struct is wrong in a comment.
Posted by Chao Yu 2 years, 1 month ago
On 2023/11/4 15:45, dslab@lzu.edu.cn wrote:
> From: Yang Hubin <yanghb2019@lzu.edu.cn>
> 
> 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>

Thanks,