Lines Matching refs:sm_info
776 struct f2fs_sm_info *sm_info = SM_I(sbi); in check_block_count() local
777 unsigned int end_segno = sm_info->segment_count - 1; in check_block_count()
965 struct f2fs_sm_info *sm_info; in build_segment_manager() local
967 sm_info = malloc(sizeof(struct f2fs_sm_info)); in build_segment_manager()
968 if (!sm_info) in build_segment_manager()
972 sbi->sm_info = sm_info; in build_segment_manager()
973 sm_info->seg0_blkaddr = le32_to_cpu(raw_super->segment0_blkaddr); in build_segment_manager()
974 sm_info->main_blkaddr = le32_to_cpu(raw_super->main_blkaddr); in build_segment_manager()
975 sm_info->segment_count = le32_to_cpu(raw_super->segment_count); in build_segment_manager()
976 sm_info->reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); in build_segment_manager()
977 sm_info->ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); in build_segment_manager()
978 sm_info->main_segments = le32_to_cpu(raw_super->segment_count_main); in build_segment_manager()
979 sm_info->ssa_blkaddr = le32_to_cpu(raw_super->ssa_blkaddr); in build_segment_manager()
1322 free(sbi->sm_info); in f2fs_do_umount()