Searched refs:SM_I (Results 1 – 11 of 11) sorted by relevance
68 (SM_I(sbi) ? SM_I(sbi)->main_blkaddr : \71 (SM_I(sbi) ? SM_I(sbi)->seg0_blkaddr : \74 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments)78 (SM_I(sbi) ? SM_I(sbi)->segment_count : \329 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()538 return SM_I(sbi)->reserved_segments + in reserved_segments()539 SM_I(sbi)->additional_reserved_segments; in reserved_segments()564 return SM_I(sbi)->ovp_segments; in overprovision_segments()663 return prefree_segments(sbi) > SM_I(sbi)->rec_prefree_segments; in excess_prefree_segs()713 return SM_I(sbi)->ipu_policy == F2FS_IPU_DISABLE; in IS_F2FS_IPU_DISABLE()[all …]
185 SM_I(sbi)->min_ssr_sections + reserved_sections(sbi)); in f2fs_need_SSR()553 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in issue_flush_thread()586 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_issue_flush()660 if (SM_I(sbi)->fcc_info) { in f2fs_create_flush_cmd_control()661 fcc = SM_I(sbi)->fcc_info; in f2fs_create_flush_cmd_control()674 SM_I(sbi)->fcc_info = fcc; in f2fs_create_flush_cmd_control()693 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_destroy_flush_cmd_control()703 SM_I(sbi)->fcc_info = NULL; in f2fs_destroy_flush_cmd_control()935 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __create_discard_cmd()966 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in f2fs_check_discard_tree()[all …]
114 if (SM_I(sbi)->fcc_info) { in update_general_status()116 atomic_read(&SM_I(sbi)->fcc_info->issued_flush); in update_general_status()118 atomic_read(&SM_I(sbi)->fcc_info->queued_flush); in update_general_status()120 llist_empty(&SM_I(sbi)->fcc_info->issue_list); in update_general_status()122 if (SM_I(sbi)->dcc_info) { in update_general_status()124 atomic_read(&SM_I(sbi)->dcc_info->issued_discard); in update_general_status()126 atomic_read(&SM_I(sbi)->dcc_info->queued_discard); in update_general_status()128 atomic_read(&SM_I(sbi)->dcc_info->discard_cmd_cnt); in update_general_status()129 si->undiscard_blks = SM_I(sbi)->dcc_info->undiscard_blks; in update_general_status()293 if (SM_I(sbi)->fcc_info) in update_mem_info()[all …]
72 return (unsigned char *)SM_I(sbi); in __struct_ptr()74 return (unsigned char *)SM_I(sbi)->dcc_info; in __struct_ptr()140 if (!SM_I(sbi)->dcc_info) in pending_discard_show()143 &SM_I(sbi)->dcc_info->discard_cmd_cnt)); in pending_discard_show()470 SM_I(sbi)->additional_reserved_segments)) { in __sbi_store()733 SM_I(sbi)->ipu_policy = (unsigned int)t; in __sbi_store()1412 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in discard_plist_seq_show()
1974 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function1981 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()1986 return (struct free_segmap_info *)(SM_I(sbi)->free_info); in FREE_I()1991 return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); in DIRTY_I()2279 SM_I(sbi)->additional_reserved_segments; in inc_valid_block_count()2625 SM_I(sbi)->additional_reserved_segments; in inc_valid_node_count()2821 if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info && in is_inflight_io()2822 atomic_read(&SM_I(sbi)->dcc_info->queued_discard)) in is_inflight_io()2825 if (SM_I(sbi) && SM_I(sbi)->fcc_info && in is_inflight_io()2826 atomic_read(&SM_I(sbi)->fcc_info->queued_flush)) in is_inflight_io()[all …]
2610 if (IS_F2FS_IPU_UTIL(sbi) && utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()2613 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()3076 SM_I(F2FS_M_SB(mapping))->min_hot_blocks) in f2fs_write_cache_pages()3324 if (get_dirty_pages(inode) >= SM_I(F2FS_I_SB(inode))->min_seq_blocks) in __should_serialize_io()4027 if ((pblock - SM_I(sbi)->main_blkaddr) & sec_blks_mask || in check_swap_activate()
2092 SM_I(sbi)->segment_count = (int)SM_I(sbi)->segment_count + segs; in update_fs_metadata()
363 SM_I(sbi)->additional_reserved_segments = wanted_reserved_segments; in adjust_reserved_segment()4351 SM_I(sbi)->dcc_info->discard_granularity = in f2fs_tuning_parameters()4354 SM_I(sbi)->ipu_policy = BIT(F2FS_IPU_FORCE) | in f2fs_tuning_parameters()
188 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
48 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in f2fs_available_free_memory()
269 if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) in f2fs_do_sync_file()