Searched refs:SM_I (Results 1 – 11 of 11) sorted by relevance
183 SM_I(sbi)->min_ssr_sections + reserved_sections(sbi)); in f2fs_need_SSR()615 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in issue_flush_thread()648 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_issue_flush()723 if (SM_I(sbi)->fcc_info) { in f2fs_create_flush_cmd_control()724 fcc = SM_I(sbi)->fcc_info; in f2fs_create_flush_cmd_control()737 SM_I(sbi)->fcc_info = fcc; in f2fs_create_flush_cmd_control()747 SM_I(sbi)->fcc_info = NULL; in f2fs_create_flush_cmd_control()756 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_destroy_flush_cmd_control()766 SM_I(sbi)->fcc_info = NULL; in f2fs_destroy_flush_cmd_control()998 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __create_discard_cmd()[all …]
67 (SM_I(sbi) ? SM_I(sbi)->main_blkaddr : \70 (SM_I(sbi) ? SM_I(sbi)->seg0_blkaddr : \73 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments)77 (SM_I(sbi) ? SM_I(sbi)->segment_count : \331 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()540 return SM_I(sbi)->reserved_segments; in reserved_segments()565 return SM_I(sbi)->ovp_segments; in overprovision_segments()629 return prefree_segments(sbi) > SM_I(sbi)->rec_prefree_segments; in excess_prefree_segs()891 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in wake_up_discard_thread()
106 if (SM_I(sbi)->fcc_info) { in update_general_status()108 atomic_read(&SM_I(sbi)->fcc_info->issued_flush); in update_general_status()110 atomic_read(&SM_I(sbi)->fcc_info->queued_flush); in update_general_status()112 llist_empty(&SM_I(sbi)->fcc_info->issue_list); in update_general_status()114 if (SM_I(sbi)->dcc_info) { in update_general_status()116 atomic_read(&SM_I(sbi)->dcc_info->issued_discard); in update_general_status()118 atomic_read(&SM_I(sbi)->dcc_info->queued_discard); in update_general_status()120 atomic_read(&SM_I(sbi)->dcc_info->discard_cmd_cnt); in update_general_status()121 si->undiscard_blks = SM_I(sbi)->dcc_info->undiscard_blks; in update_general_status()283 if (SM_I(sbi)->fcc_info) in update_mem_info()[all …]
1964 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function1971 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()1976 return (struct free_segmap_info *)(SM_I(sbi)->free_info); in FREE_I()1981 return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); in DIRTY_I()2632 if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info && in is_inflight_io()2633 atomic_read(&SM_I(sbi)->dcc_info->queued_discard)) in is_inflight_io()2636 if (SM_I(sbi) && SM_I(sbi)->fcc_info && in is_inflight_io()2637 atomic_read(&SM_I(sbi)->fcc_info->queued_flush)) in is_inflight_io()3774 else if (blkaddr < SM_I(sbi)->ssa_blkaddr) \3776 else if (blkaddr < SM_I(sbi)->main_blkaddr) \
2513 unsigned int policy = SM_I(sbi)->ipu_policy; in check_inplace_update_policy()2520 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()2523 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()2956 SM_I(F2FS_M_SB(mapping))->min_hot_blocks) in f2fs_write_cache_pages()3172 if (get_dirty_pages(inode) >= SM_I(F2FS_I_SB(inode))->min_seq_blocks) in __should_serialize_io()4033 if ((pblock - SM_I(sbi)->main_blkaddr) & sec_blks_mask || in check_swap_activate()
62 return (unsigned char *)SM_I(sbi); in __struct_ptr()64 return (unsigned char *)SM_I(sbi)->dcc_info; in __struct_ptr()
1952 SM_I(sbi)->segment_count = (int)SM_I(sbi)->segment_count + segs; in update_fs_metadata()
171 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
2308 dcc = SM_I(sbi)->dcc_info; in f2fs_remount()3880 struct f2fs_sm_info *sm_i = SM_I(sbi); in f2fs_tuning_parameters()
47 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in f2fs_available_free_memory()
272 if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) in f2fs_do_sync_file()