Home
last modified time | relevance | path

Searched refs:SM_I (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/fs/f2fs/
Dsegment.h67 (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 : \
333 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()
530 return SM_I(sbi)->reserved_segments; in reserved_segments()
555 return SM_I(sbi)->ovp_segments; in overprovision_segments()
619 return prefree_segments(sbi) > SM_I(sbi)->rec_prefree_segments; in excess_prefree_segs()
881 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in wake_up_discard_thread()
Dsegment.c183 SM_I(sbi)->min_ssr_sections + reserved_sections(sbi)); in f2fs_need_SSR()
600 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in issue_flush_thread()
637 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_issue_flush()
708 if (SM_I(sbi)->fcc_info) { in f2fs_create_flush_cmd_control()
709 fcc = SM_I(sbi)->fcc_info; in f2fs_create_flush_cmd_control()
722 SM_I(sbi)->fcc_info = fcc; in f2fs_create_flush_cmd_control()
732 SM_I(sbi)->fcc_info = NULL; in f2fs_create_flush_cmd_control()
741 struct flush_cmd_control *fcc = SM_I(sbi)->fcc_info; in f2fs_destroy_flush_cmd_control()
751 SM_I(sbi)->fcc_info = NULL; in f2fs_destroy_flush_cmd_control()
972 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in __create_discard_cmd()
[all …]
Ddebug.c106 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()
269 if (SM_I(sbi)->fcc_info) in update_mem_info()
[all …]
Df2fs.h1806 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function
1813 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()
1818 return (struct free_segmap_info *)(SM_I(sbi)->free_info); in FREE_I()
1823 return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); in DIRTY_I()
2492 if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info && in is_idle()
2493 atomic_read(&SM_I(sbi)->dcc_info->queued_discard)) in is_idle()
2496 if (SM_I(sbi) && SM_I(sbi)->fcc_info && in is_idle()
2497 atomic_read(&SM_I(sbi)->fcc_info->queued_flush)) in is_idle()
3658 else if (blkaddr < SM_I(sbi)->ssa_blkaddr) \
3660 else if (blkaddr < SM_I(sbi)->main_blkaddr) \
Dsysfs.c57 return (unsigned char *)SM_I(sbi); in __struct_ptr()
59 return (unsigned char *)SM_I(sbi)->dcc_info; in __struct_ptr()
Ddata.c2525 unsigned int policy = SM_I(sbi)->ipu_policy; in check_inplace_update_policy()
2532 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()
2535 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()
3171 if (get_dirty_pages(inode) >= SM_I(F2FS_I_SB(inode))->min_seq_blocks) in __should_serialize_io()
Dgc.c1910 SM_I(sbi)->segment_count = (int)SM_I(sbi)->segment_count + segs; in update_fs_metadata()
Dcheckpoint.c168 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
Dsuper.c3443 struct f2fs_sm_info *sm_i = SM_I(sbi); in f2fs_tuning_parameters()
Dfile.c268 if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) in f2fs_do_sync_file()