Lines Matching refs:sm_info
4264 struct f2fs_sm_info *sm_info = SM_I(sbi);
4265 struct list_head *set_list = &sm_info->sit_entry_set;
5235 struct f2fs_sm_info *sm_info;
5238 sm_info = f2fs_kzalloc(sbi, sizeof(struct f2fs_sm_info), GFP_KERNEL);
5239 if (!sm_info)
5243 sbi->sm_info = sm_info;
5244 sm_info->seg0_blkaddr = le32_to_cpu(raw_super->segment0_blkaddr);
5245 sm_info->main_blkaddr = le32_to_cpu(raw_super->main_blkaddr);
5246 sm_info->segment_count = le32_to_cpu(raw_super->segment_count);
5247 sm_info->reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count);
5248 sm_info->ovp_segments = le32_to_cpu(ckpt->overprov_segment_count);
5249 sm_info->main_segments = le32_to_cpu(raw_super->segment_count_main);
5250 sm_info->ssa_blkaddr = le32_to_cpu(raw_super->ssa_blkaddr);
5251 sm_info->rec_prefree_segments = sm_info->main_segments *
5253 if (sm_info->rec_prefree_segments > DEF_MAX_RECLAIM_PREFREE_SEGMENTS)
5254 sm_info->rec_prefree_segments = DEF_MAX_RECLAIM_PREFREE_SEGMENTS;
5257 sm_info->ipu_policy = 1 << F2FS_IPU_FSYNC;
5258 sm_info->min_ipu_util = DEF_MIN_IPU_UTIL;
5259 sm_info->min_fsync_blocks = DEF_MIN_FSYNC_BLOCKS;
5260 sm_info->min_seq_blocks = sbi->blocks_per_seg * sbi->segs_per_sec;
5261 sm_info->min_hot_blocks = DEF_MIN_HOT_BLOCKS;
5262 sm_info->min_ssr_sections = reserved_sections(sbi);
5264 INIT_LIST_HEAD(&sm_info->sit_entry_set);
5266 init_rwsem(&sm_info->curseg_lock);
5398 struct f2fs_sm_info *sm_info = SM_I(sbi);
5400 if (!sm_info)
5408 sbi->sm_info = NULL;
5409 kfree(sm_info);