aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/f2fs_fs.h')
-rw-r--r--include/linux/f2fs_fs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 25c6324a0dd0..3d6e6ce44c5c 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -284,6 +284,12 @@ struct f2fs_nat_block {
284#define SIT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_sit_entry)) 284#define SIT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_sit_entry))
285 285
286/* 286/*
287 * F2FS uses 4 bytes to represent block address. As a result, supported size of
288 * disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments.
289 */
290#define F2FS_MAX_SEGMENT ((16 * 1024 * 1024) / 2)
291
292/*
287 * Note that f2fs_sit_entry->vblocks has the following bit-field information. 293 * Note that f2fs_sit_entry->vblocks has the following bit-field information.
288 * [15:10] : allocation type such as CURSEG_XXXX_TYPE 294 * [15:10] : allocation type such as CURSEG_XXXX_TYPE
289 * [9:0] : valid block count 295 * [9:0] : valid block count