Skip to content

Commit 991b6bd

Browse files
Zhiguo NiuJaegeuk Kim
authored andcommitted
f2fs: fix some ambiguous comments
After commit d7e9a90 ("f2fs: Support Block Size == Page Size"), Some comments are confused and just correct with block size is 4KB. Signed-off-by: Zhiguo Niu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent a798ff1 commit 991b6bd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

include/linux/f2fs_fs.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ struct f2fs_nat_block {
394394

395395
/*
396396
* F2FS uses 4 bytes to represent block address. As a result, supported size of
397-
* disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments.
397+
* disk is 16 TB for a 4K page size and 64 TB for a 16K page size and it equals
398+
* to 16 * 1024 * 1024 / 2 segments.
398399
*/
399400
#define F2FS_MAX_SEGMENT ((16 * 1024 * 1024) / 2)
400401

@@ -424,8 +425,10 @@ struct f2fs_sit_block {
424425
/*
425426
* For segment summary
426427
*
427-
* One summary block contains exactly 512 summary entries, which represents
428-
* exactly one segment by default. Not allow to change the basic units.
428+
* One summary block with 4KB size contains exactly 512 summary entries, which
429+
* represents exactly one segment with 2MB size.
430+
* Similarly, in the case of block with 16KB size, it represents one segment with 8MB size.
431+
* Not allow to change the basic units.
429432
*
430433
* NOTE: For initializing fields, you must use set_summary
431434
*
@@ -556,6 +559,7 @@ typedef __le32 f2fs_hash_t;
556559

557560
/*
558561
* space utilization of regular dentry and inline dentry (w/o extra reservation)
562+
* when block size is 4KB.
559563
* regular dentry inline dentry (def) inline dentry (min)
560564
* bitmap 1 * 27 = 27 1 * 23 = 23 1 * 1 = 1
561565
* reserved 1 * 3 = 3 1 * 7 = 7 1 * 1 = 1

0 commit comments

Comments
 (0)