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 : \339 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()548 return SM_I(sbi)->reserved_segments + in reserved_segments()549 SM_I(sbi)->additional_reserved_segments; in reserved_segments()574 return SM_I(sbi)->ovp_segments; in overprovision_segments()646 return prefree_segments(sbi) > SM_I(sbi)->rec_prefree_segments; in excess_prefree_segs()913 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in wake_up_discard_thread()
185 SM_I(sbi)->min_ssr_sections + reserved_sections(sbi)); in f2fs_need_SSR()517 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in issue_flush_thread()550 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_issue_flush()625 if (SM_I(sbi)->fcc_info) { in f2fs_create_flush_cmd_control()626 fcc = SM_I(sbi)->fcc_info; in f2fs_create_flush_cmd_control()639 SM_I(sbi)->fcc_info = fcc; in f2fs_create_flush_cmd_control()649 SM_I(sbi)->fcc_info = NULL; in f2fs_create_flush_cmd_control()658 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_destroy_flush_cmd_control()668 SM_I(sbi)->fcc_info = NULL; in f2fs_destroy_flush_cmd_control()900 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __create_discard_cmd()[all …]
103 if (SM_I(sbi)->fcc_info) { in update_general_status()105 atomic_read(&SM_I(sbi)->fcc_info->issued_flush); in update_general_status()107 atomic_read(&SM_I(sbi)->fcc_info->queued_flush); in update_general_status()109 llist_empty(&SM_I(sbi)->fcc_info->issue_list); in update_general_status()111 if (SM_I(sbi)->dcc_info) { in update_general_status()113 atomic_read(&SM_I(sbi)->dcc_info->issued_discard); in update_general_status()115 atomic_read(&SM_I(sbi)->dcc_info->queued_discard); in update_general_status()117 atomic_read(&SM_I(sbi)->dcc_info->discard_cmd_cnt); in update_general_status()118 si->undiscard_blks = SM_I(sbi)->dcc_info->undiscard_blks; in update_general_status()279 if (SM_I(sbi)->fcc_info) in update_mem_info()[all …]
2038 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function2045 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()2050 return (struct free_segmap_info *)(SM_I(sbi)->free_info); in FREE_I()2055 return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); in DIRTY_I()2340 SM_I(sbi)->additional_reserved_segments; in inc_valid_block_count()2613 SM_I(sbi)->additional_reserved_segments; in inc_valid_node_count()2816 if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info && in is_inflight_io()2817 atomic_read(&SM_I(sbi)->dcc_info->queued_discard)) in is_inflight_io()2820 if (SM_I(sbi) && SM_I(sbi)->fcc_info && in is_inflight_io()2821 atomic_read(&SM_I(sbi)->fcc_info->queued_flush)) in is_inflight_io()[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()464 SM_I(sbi)->additional_reserved_segments)) { in __sbi_store()
2516 unsigned int policy = SM_I(sbi)->ipu_policy; in check_inplace_update_policy()2526 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()2529 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()2973 SM_I(F2FS_M_SB(mapping))->min_hot_blocks) in f2fs_write_cache_pages()3192 if (get_dirty_pages(inode) >= SM_I(F2FS_I_SB(inode))->min_seq_blocks) in __should_serialize_io()3908 if ((pblock - SM_I(sbi)->main_blkaddr) & sec_blks_mask || in check_swap_activate()
2049 SM_I(sbi)->segment_count = (int)SM_I(sbi)->segment_count + segs; in update_fs_metadata()
358 SM_I(sbi)->additional_reserved_segments = wanted_reserved_segments; in adjust_reserved_segment()2391 dcc = SM_I(sbi)->dcc_info; in f2fs_remount()4059 struct f2fs_sm_info *sm_i = SM_I(sbi); in f2fs_tuning_parameters()
183 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()
273 if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) in f2fs_do_sync_file()