diff options
Diffstat (limited to 'include/f2fs_fs.h')
-rw-r--r-- | include/f2fs_fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index 19e9859..8c7c4ce 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -667,7 +667,9 @@ struct f2fs_nat_block { * disk is 16 TB and it equals to 16 * 1024 * 1024 / 2 segments. */ #define F2FS_MAX_SEGMENT ((16 * 1024 * 1024) / 2) -#define MAX_SIT_BITMAP_SIZE ((F2FS_MAX_SEGMENT / SIT_ENTRY_PER_BLOCK) / 8) +#define MAX_SIT_BITMAP_SIZE (SEG_ALIGN(ALIGN(F2FS_MAX_SEGMENT, \ + SIT_ENTRY_PER_BLOCK)) * \ + config.blks_per_seg / 8) /* * Note that f2fs_sit_entry->vblocks has the following bit-field information. |