Home
last modified time | relevance | path

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

/external/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.c495 if (get_sb(feature) & F2FS_FEATURE_SB_CHKSUM) { in update_superblock()
496 old_crc = get_sb(crc); in update_superblock()
519 u32 segment0_blkaddr = get_sb(segment0_blkaddr); in sanity_check_area_boundary()
520 u32 cp_blkaddr = get_sb(cp_blkaddr); in sanity_check_area_boundary()
521 u32 sit_blkaddr = get_sb(sit_blkaddr); in sanity_check_area_boundary()
522 u32 nat_blkaddr = get_sb(nat_blkaddr); in sanity_check_area_boundary()
523 u32 ssa_blkaddr = get_sb(ssa_blkaddr); in sanity_check_area_boundary()
524 u32 main_blkaddr = get_sb(main_blkaddr); in sanity_check_area_boundary()
525 u32 segment_count_ckpt = get_sb(segment_count_ckpt); in sanity_check_area_boundary()
526 u32 segment_count_sit = get_sb(segment_count_sit); in sanity_check_area_boundary()
[all …]
Dmain.c671 if (c.defrag_start > get_sb(block_count)) in do_defrag()
679 if (c.defrag_start + c.defrag_len > get_sb(block_count)) in do_defrag()
680 c.defrag_len = get_sb(block_count) - c.defrag_start; in do_defrag()
689 c.defrag_target > get_sb(block_count)) in do_defrag()
Dfsck.c1669 start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); in fsck_chk_orphan_node()
1670 orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); in fsck_chk_orphan_node()
2048 orphan_blks + get_sb(cp_payload)); in fix_checkpoint()
2062 cp_blk_no = get_sb(cp_blkaddr); in fix_checkpoint()
2064 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in fix_checkpoint()
2069 for (i = 0; i < get_sb(cp_payload); i++) { in fix_checkpoint()
/external/f2fs-tools/mkfs/
Df2fs_format.c124 sb->hot_ext_count = pos - get_sb(extension_count);; in cure_extension_list()
148 sb->hot_ext_count = pos - get_sb(extension_count); in cure_extension_list()
242 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
244 if (c.zoned_mode && (get_sb(segment0_blkaddr) + c.start_sector / in f2fs_prepare_super_block()
247 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
283 set_sb(sit_blkaddr, get_sb(segment0_blkaddr) + in f2fs_prepare_super_block()
284 get_sb(segment_count_ckpt) * c.blks_per_seg); in f2fs_prepare_super_block()
286 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()
292 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + get_sb(segment_count_sit) * in f2fs_prepare_super_block()
295 total_valid_blks_available = (get_sb(segment_count) - in f2fs_prepare_super_block()
[all …]
/external/f2fs-tools/include/
Df2fs_fs.h450 #define get_sb(member) \ macro
1278 if (get_sb(segment_count_main) < 256) { in get_best_overprovision()
1290 get_sb(segs_per_sec); in get_best_overprovision()
1291 ovp = (get_sb(segment_count_main) - reserved) * candidate / 100; in get_best_overprovision()
1292 space = get_sb(segment_count_main) - reserved - ovp; in get_best_overprovision()
/external/squashfs-tools/kernel/fs/squashfs/
Dsuper.c423 .get_sb = squashfs_get_sb,