Home
last modified time | relevance | path

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

/third_party/f2fs-tools/fsck/
Df2fs.h315 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I() function
322 return (struct sit_info *)(SM_I(sbi)->sit_info); in SIT_I()
419 block_t end = SM_I(sbi)->main_blkaddr; in __end_block_addr()
435 (SM_I(sbi) ? SM_I(sbi)->main_blkaddr : \
438 (SM_I(sbi) ? SM_I(sbi)->seg0_blkaddr : \
445 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
459 GET_SEGNO_FROM_SEG0(sbi, SM_I(sbi)->main_blkaddr)
462 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments)
466 #define START_BLOCK(sbi, segno) (SM_I(sbi)->main_blkaddr + \
477 return (struct curseg_info *)(SM_I(sbi)->curseg_array + type); in CURSEG_I()
[all …]
Ddump.c169 SM_I(sbi)->main_segments - free_segs, in sit_dump()
769 if (blk_addr < SM_I(sbi)->seg0_blkaddr) { in dump_info_from_blkaddr()
778 } else if (blk_addr < SM_I(sbi)->ssa_blkaddr) { in dump_info_from_blkaddr()
781 } else if (blk_addr < SM_I(sbi)->main_blkaddr) { in dump_info_from_blkaddr()
791 SM_I(sbi)->main_blkaddr, in dump_info_from_blkaddr()
Dmain.c904 opt->end_sit = SM_I(sbi)->main_segments; in do_dump()
906 opt->end_ssa = SM_I(sbi)->main_segments; in do_dump()
935 if (c.defrag_start < SM_I(sbi)->main_blkaddr) in do_defrag()
936 c.defrag_start = SM_I(sbi)->main_blkaddr; in do_defrag()
950 if (c.defrag_target < SM_I(sbi)->main_blkaddr || in do_defrag()
Dmount.c41 seg_start_blkaddr = SM_I(sbi)->main_blkaddr + in get_device_idx()
66 unsigned int sec_off = SM_I(sbi)->main_blkaddr >> in is_usable_seg()
598 blkaddr < SM_I(sbi)->ssa_blkaddr) in f2fs_is_valid_blkaddr()
1734 SM_I(sbi)->sit_info = sit_i; in build_sit_info()
1990 SM_I(sbi)->curseg_array = array; in build_curseg()
2029 unsigned int end_segno = SM_I(sbi)->segment_count - 1; in check_seg_range()
2068 struct f2fs_sm_info *sm_info = SM_I(sbi); in check_block_count()
2458 struct f2fs_sm_info *sm_i = SM_I(sbi); in build_sit_area_bitmap()
2761 if (get_free_segments(sbi) <= SM_I(sbi)->reserved_segments + 1) in find_next_free_block()
2764 while (*to >= SM_I(sbi)->main_blkaddr && *to < end_blkaddr) { in find_next_free_block()
[all …]
Dsload.c381 move_curseg_info(sbi, SM_I(sbi)->main_blkaddr, 0); in f2fs_sload()
Dsegment.c57 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
Dfsck.c2185 struct f2fs_sm_info *sm_i = SM_I(sbi); in fsck_init()
3027 cs = &SM_I(sbi)->curseg_array[cs_index]; in chk_and_fix_wp_with_sit()