Home
last modified time | relevance | path

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

/openbmc/linux/fs/f2fs/
H A Dsegment.h68 (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 : \
317 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()
526 return SM_I(sbi)->reserved_segments + in reserved_segments()
527 SM_I(sbi)->additional_reserved_segments; in reserved_segments()
552 return SM_I(sbi)->ovp_segments; in overprovision_segments()
700 return SM_I(sbi)->ipu_policy == F2FS_IPU_DISABLE; in IS_F2FS_IPU_DISABLE()
706 return SM_I(sbi)->ipu_policy & BIT(name); \
[all …]
H A Dsegment.c662 if (SM_I(sbi)->fcc_info) { in f2fs_create_flush_cmd_control()
663 fcc = SM_I(sbi)->fcc_info; in f2fs_create_flush_cmd_control()
676 SM_I(sbi)->fcc_info = fcc; in f2fs_create_flush_cmd_control()
705 SM_I(sbi)->fcc_info = NULL; in f2fs_destroy_flush_cmd_control()
2266 if (SM_I(sbi)->dcc_info) { in create_discard_cmd_control()
2267 dcc = SM_I(sbi)->dcc_info; in create_discard_cmd_control()
2305 SM_I(sbi)->dcc_info = dcc; in create_discard_cmd_control()
2310 SM_I(sbi)->dcc_info = NULL; in create_discard_cmd_control()
2332 SM_I(sbi)->dcc_info = NULL; in destroy_discard_cmd_control()
4388 SM_I(sbi)->sit_info = sit_i; in build_sit_info()
[all …]
H A Ddebug.c114 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()
293 if (SM_I(sbi)->fcc_info) in update_mem_info()
295 if (SM_I(sbi)->dcc_info) { in update_mem_info()
[all …]
H A Dsysfs.c72 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()
469 (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()
H A Df2fs.h2002 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function
2009 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()
2014 return (struct free_segmap_info *)(SM_I(sbi)->free_info); in FREE_I()
2019 return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); in DIRTY_I()
2832 if (type != DISCARD_TIME && SM_I(sbi) && SM_I(sbi)->dcc_info && in is_inflight_io()
2833 atomic_read(&SM_I(sbi)->dcc_info->queued_discard)) in is_inflight_io()
2836 if (SM_I(sbi) && SM_I(sbi)->fcc_info && in is_inflight_io()
2837 atomic_read(&SM_I(sbi)->fcc_info->queued_flush)) in is_inflight_io()
4037 else if (blkaddr < SM_I(sbi)->ssa_blkaddr) \
4039 else if (blkaddr < SM_I(sbi)->main_blkaddr) \
H A Ddata.c2534 if (IS_F2FS_IPU_UTIL(sbi) && utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()
2537 utilization(sbi) > SM_I(sbi)->min_ipu_util) in check_inplace_update_policy()
2994 SM_I(F2FS_M_SB(mapping))->min_hot_blocks) in f2fs_write_cache_pages()
3242 if (get_dirty_pages(inode) >= SM_I(F2FS_I_SB(inode))->min_seq_blocks) in __should_serialize_io()
3953 if ((pblock - SM_I(sbi)->main_blkaddr) % blks_per_sec || in check_swap_activate()
H A Dgc.c2098 SM_I(sbi)->segment_count = (int)SM_I(sbi)->segment_count + segs; in update_fs_metadata()
H A Dcheckpoint.c188 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
H A Dsuper.c4283 SM_I(sbi)->dcc_info->discard_granularity = in f2fs_tuning_parameters()
4286 SM_I(sbi)->ipu_policy = BIT(F2FS_IPU_FORCE) | in f2fs_tuning_parameters()
H A Dnode.c48 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; in f2fs_available_free_memory()
H A Dfile.c269 if (datasync || get_dirty_pages(inode) <= SM_I(sbi)->min_fsync_blocks) in f2fs_do_sync_file()