Home
last modified time | relevance | path

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

/third_party/f2fs-tools/fsck/
Dresize.c21 u_int32_t segment_size_bytes = 1 << (get_sb(log_blocksize) + in get_new_sb()
22 get_sb(log_blocks_per_seg)); in get_new_sb()
23 u_int32_t blks_per_seg = 1 << get_sb(log_blocks_per_seg); in get_new_sb()
24 u_int32_t segs_per_zone = get_sb(segs_per_sec) * get_sb(secs_per_zone); in get_new_sb()
27 get_sb(log_sectors_per_block)); in get_new_sb()
43 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in get_new_sb()
46 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + in get_new_sb()
47 get_sb(segment_count_sit) * blks_per_seg); in get_new_sb()
49 total_valid_blks_available = (get_sb(segment_count) - in get_new_sb()
50 (get_sb(segment_count_ckpt) + in get_new_sb()
[all …]
Dmount.c677 if (get_sb(feature) & F2FS_FEATURE_SB_CHKSUM) { in update_superblock()
678 old_crc = get_sb(crc); in update_superblock()
701 u32 segment0_blkaddr = get_sb(segment0_blkaddr); in sanity_check_area_boundary()
702 u32 cp_blkaddr = get_sb(cp_blkaddr); in sanity_check_area_boundary()
703 u32 sit_blkaddr = get_sb(sit_blkaddr); in sanity_check_area_boundary()
704 u32 nat_blkaddr = get_sb(nat_blkaddr); in sanity_check_area_boundary()
705 u32 ssa_blkaddr = get_sb(ssa_blkaddr); in sanity_check_area_boundary()
706 u32 main_blkaddr = get_sb(main_blkaddr); in sanity_check_area_boundary()
707 u32 segment_count_ckpt = get_sb(segment_count_ckpt); in sanity_check_area_boundary()
708 u32 segment_count_sit = get_sb(segment_count_sit); in sanity_check_area_boundary()
[all …]
Dmain.c739 if (c.defrag_start > get_sb(block_count)) in do_defrag()
747 if (c.defrag_start + c.defrag_len > get_sb(block_count)) in do_defrag()
748 c.defrag_len = get_sb(block_count) - c.defrag_start; in do_defrag()
757 c.defrag_target > get_sb(block_count)) in do_defrag()
Dfsck.c1745 start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); in fsck_chk_orphan_node()
1746 orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); in fsck_chk_orphan_node()
2170 orphan_blks + get_sb(cp_payload)); in fix_checkpoint()
2185 cp_blk_no = get_sb(cp_blkaddr); in fix_checkpoint()
2187 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in fix_checkpoint()
2192 for (i = 0; i < get_sb(cp_payload); i++) { in fix_checkpoint()
/third_party/f2fs-tools/mkfs/
Df2fs_format.c145 sb->hot_ext_count = pos - get_sb(extension_count);; in cure_extension_list()
169 sb->hot_ext_count = pos - get_sb(extension_count); in cure_extension_list()
263 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
265 if (c.zoned_mode && (get_sb(segment0_blkaddr) + c.start_sector / in f2fs_prepare_super_block()
268 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
304 set_sb(sit_blkaddr, get_sb(segment0_blkaddr) + in f2fs_prepare_super_block()
305 get_sb(segment_count_ckpt) * c.blks_per_seg); in f2fs_prepare_super_block()
307 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()
313 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + get_sb(segment_count_sit) * in f2fs_prepare_super_block()
316 total_valid_blks_available = (get_sb(segment_count) - in f2fs_prepare_super_block()
[all …]
/third_party/f2fs-tools/lib/
Dlibf2fs_zoned.c507 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()
515 usable_segs -= (get_sb(main_blkaddr) - get_sb(segment0_blkaddr)) >> in f2fs_get_usable_segments()
516 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()
519 return get_sb(segment_count_main); in f2fs_get_usable_segments()
578 return get_sb(segment_count_main); in f2fs_get_usable_segments()
/third_party/f2fs-tools/include/
Df2fs_fs.h475 #define get_sb(member) \ macro
1391 if (get_sb(segment_count_main) < 256) { in get_best_overprovision()
1403 round_up(usable_main_segs, get_sb(section_count)); in get_best_overprovision()