f2fs: the name of a struct is wrong in a comment.
PATCH 1/1 f2fs: the name of a struct is wrong in a comment.
From: Yang Hubin <[email protected]>
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 <[email protected]>
Signed-off-by Qian Haolai <[email protected]>
--- include/linux/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/f2fs_fs.h +1 -1
@@ -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)
Signature · 1 line
2.25.1
Quoted 8 lines · On 2023/11/4 15:45, [email protected] wrote:
From: Yang Hubin <[email protected]>
The macro
SUMMARY_SIZErepresents the size of the structf2fs_summary,instead of the size of the struct summary.
Signed-off-by Yang Hubin <[email protected]>Signed-off-by Qian Haolai <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,