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 return SM_I(sbi)->main_blkaddr + in __end_block_addr()
438 (SM_I(sbi) ? SM_I(sbi)->main_blkaddr : \
441 (SM_I(sbi) ? SM_I(sbi)->seg0_blkaddr : \
448 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
462 GET_SEGNO_FROM_SEG0(sbi, SM_I(sbi)->main_blkaddr)
465 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments)
466 #define TOTAL_SEGS(sbi) (SM_I(sbi)->segment_count)
470 #define START_BLOCK(sbi, segno) (SM_I(sbi)->main_blkaddr + \
[all …]
Ddump.c169 SM_I(sbi)->main_segments - free_segs, in sit_dump()
547 pgoff_t start_blkaddr = SM_I(sbi)->main_blkaddr; in dump_node_scan_disk()
549 (SM_I(sbi)->main_segments << sbi->log_blocks_per_seg); in dump_node_scan_disk()
802 if (blk_addr < SM_I(sbi)->seg0_blkaddr) { in dump_info_from_blkaddr()
811 } else if (blk_addr < SM_I(sbi)->ssa_blkaddr) { in dump_info_from_blkaddr()
814 } else if (blk_addr < SM_I(sbi)->main_blkaddr) { in dump_info_from_blkaddr()
824 SM_I(sbi)->main_blkaddr, in dump_info_from_blkaddr()
Dmain.c933 opt->end_sit = SM_I(sbi)->main_segments; in do_dump()
935 opt->end_ssa = SM_I(sbi)->main_segments; in do_dump()
966 if (c.defrag_start < SM_I(sbi)->main_blkaddr) in do_defrag()
967 c.defrag_start = SM_I(sbi)->main_blkaddr; in do_defrag()
981 if (c.defrag_target < SM_I(sbi)->main_blkaddr || in do_defrag()
Dmount.c42 seg_start_blkaddr = SM_I(sbi)->main_blkaddr + in get_device_idx()
67 unsigned int sec_off = SM_I(sbi)->main_blkaddr >> in is_usable_seg()
663 blkaddr < SM_I(sbi)->ssa_blkaddr) in f2fs_is_valid_blkaddr()
1830 SM_I(sbi)->sit_info = sit_i; in build_sit_info()
2086 SM_I(sbi)->curseg_array = array; in build_curseg()
2125 unsigned int end_segno = SM_I(sbi)->segment_count - 1; in check_seg_range()
2164 struct f2fs_sm_info *sm_info = SM_I(sbi); in check_block_count()
2554 struct f2fs_sm_info *sm_i = SM_I(sbi); in build_sit_area_bitmap()
2857 if (get_free_segments(sbi) <= SM_I(sbi)->reserved_segments + 1) in find_next_free_block()
2860 while (*to >= SM_I(sbi)->main_blkaddr && *to < end_blkaddr) { in find_next_free_block()
[all …]
Dsegment.c58 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
67 blkaddr = SM_I(sbi)->main_blkaddr; in reserve_new_block()
Dsload.c381 move_curseg_info(sbi, SM_I(sbi)->main_blkaddr, 0); in f2fs_sload()
Dfsck.c2190 struct f2fs_sm_info *sm_i = SM_I(sbi); in fsck_init()
3035 cs = &SM_I(sbi)->curseg_array[cs_index]; in chk_and_fix_wp_with_sit()
3243 max_blks = SM_I(sbi)->main_blkaddr + (data_secs + node_secs) * in fsck_verify()