Lines Matching refs:sm_info

4251 	struct f2fs_sm_info *sm_info = SM_I(sbi);  in add_sits_in_set()  local
4252 struct list_head *set_list = &sm_info->sit_entry_set; in add_sits_in_set()
5267 struct f2fs_sm_info *sm_info; in f2fs_build_segment_manager() local
5270 sm_info = f2fs_kzalloc(sbi, sizeof(struct f2fs_sm_info), GFP_KERNEL); in f2fs_build_segment_manager()
5271 if (!sm_info) in f2fs_build_segment_manager()
5275 sbi->sm_info = sm_info; in f2fs_build_segment_manager()
5276 sm_info->seg0_blkaddr = le32_to_cpu(raw_super->segment0_blkaddr); in f2fs_build_segment_manager()
5277 sm_info->main_blkaddr = le32_to_cpu(raw_super->main_blkaddr); in f2fs_build_segment_manager()
5278 sm_info->segment_count = le32_to_cpu(raw_super->segment_count); in f2fs_build_segment_manager()
5279 sm_info->reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_build_segment_manager()
5280 sm_info->ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); in f2fs_build_segment_manager()
5281 sm_info->main_segments = le32_to_cpu(raw_super->segment_count_main); in f2fs_build_segment_manager()
5282 sm_info->ssa_blkaddr = le32_to_cpu(raw_super->ssa_blkaddr); in f2fs_build_segment_manager()
5283 sm_info->rec_prefree_segments = sm_info->main_segments * in f2fs_build_segment_manager()
5285 if (sm_info->rec_prefree_segments > DEF_MAX_RECLAIM_PREFREE_SEGMENTS) in f2fs_build_segment_manager()
5286 sm_info->rec_prefree_segments = DEF_MAX_RECLAIM_PREFREE_SEGMENTS; in f2fs_build_segment_manager()
5289 sm_info->ipu_policy = BIT(F2FS_IPU_FSYNC); in f2fs_build_segment_manager()
5290 sm_info->min_ipu_util = DEF_MIN_IPU_UTIL; in f2fs_build_segment_manager()
5291 sm_info->min_fsync_blocks = DEF_MIN_FSYNC_BLOCKS; in f2fs_build_segment_manager()
5292 sm_info->min_seq_blocks = BLKS_PER_SEG(sbi); in f2fs_build_segment_manager()
5293 sm_info->min_hot_blocks = DEF_MIN_HOT_BLOCKS; in f2fs_build_segment_manager()
5294 sm_info->min_ssr_sections = reserved_sections(sbi); in f2fs_build_segment_manager()
5296 INIT_LIST_HEAD(&sm_info->sit_entry_set); in f2fs_build_segment_manager()
5298 init_f2fs_rwsem(&sm_info->curseg_lock); in f2fs_build_segment_manager()
5431 struct f2fs_sm_info *sm_info = SM_I(sbi); in f2fs_destroy_segment_manager() local
5433 if (!sm_info) in f2fs_destroy_segment_manager()
5441 sbi->sm_info = NULL; in f2fs_destroy_segment_manager()
5442 kfree(sm_info); in f2fs_destroy_segment_manager()