Lines Matching refs:sm_info
4013 struct f2fs_sm_info *sm_info = SM_I(sbi); in add_sits_in_set() local
4014 struct list_head *set_list = &sm_info->sit_entry_set; in add_sits_in_set()
5071 struct f2fs_sm_info *sm_info; in f2fs_build_segment_manager() local
5074 sm_info = f2fs_kzalloc(sbi, sizeof(struct f2fs_sm_info), GFP_KERNEL); in f2fs_build_segment_manager()
5075 if (!sm_info) in f2fs_build_segment_manager()
5079 sbi->sm_info = sm_info; in f2fs_build_segment_manager()
5080 sm_info->seg0_blkaddr = le32_to_cpu(raw_super->segment0_blkaddr); in f2fs_build_segment_manager()
5081 sm_info->main_blkaddr = le32_to_cpu(raw_super->main_blkaddr); in f2fs_build_segment_manager()
5082 sm_info->segment_count = le32_to_cpu(raw_super->segment_count); in f2fs_build_segment_manager()
5083 sm_info->reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_build_segment_manager()
5084 sm_info->ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); in f2fs_build_segment_manager()
5085 sm_info->main_segments = le32_to_cpu(raw_super->segment_count_main); in f2fs_build_segment_manager()
5086 sm_info->ssa_blkaddr = le32_to_cpu(raw_super->ssa_blkaddr); in f2fs_build_segment_manager()
5087 sm_info->rec_prefree_segments = sm_info->main_segments * in f2fs_build_segment_manager()
5089 if (sm_info->rec_prefree_segments > DEF_MAX_RECLAIM_PREFREE_SEGMENTS) in f2fs_build_segment_manager()
5090 sm_info->rec_prefree_segments = DEF_MAX_RECLAIM_PREFREE_SEGMENTS; in f2fs_build_segment_manager()
5093 sm_info->ipu_policy = 1 << F2FS_IPU_FSYNC; in f2fs_build_segment_manager()
5094 sm_info->min_ipu_util = DEF_MIN_IPU_UTIL; in f2fs_build_segment_manager()
5095 sm_info->min_fsync_blocks = DEF_MIN_FSYNC_BLOCKS; in f2fs_build_segment_manager()
5096 sm_info->min_seq_blocks = sbi->blocks_per_seg; in f2fs_build_segment_manager()
5097 sm_info->min_hot_blocks = DEF_MIN_HOT_BLOCKS; in f2fs_build_segment_manager()
5098 sm_info->min_ssr_sections = reserved_sections(sbi); in f2fs_build_segment_manager()
5100 INIT_LIST_HEAD(&sm_info->sit_entry_set); in f2fs_build_segment_manager()
5102 init_f2fs_rwsem(&sm_info->curseg_lock); in f2fs_build_segment_manager()
5237 struct f2fs_sm_info *sm_info = SM_I(sbi); in f2fs_destroy_segment_manager() local
5239 if (!sm_info) in f2fs_destroy_segment_manager()
5247 sbi->sm_info = NULL; in f2fs_destroy_segment_manager()
5248 kfree(sm_info); in f2fs_destroy_segment_manager()