Home
last modified time | relevance | path

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

/external/f2fs-tools/fsck/
Dresize.c20 u_int32_t segment_size_bytes = 1 << (get_sb(log_blocksize) + in get_new_sb()
21 get_sb(log_blocks_per_seg)); in get_new_sb()
22 u_int32_t blks_per_seg = 1 << get_sb(log_blocks_per_seg); in get_new_sb()
23 u_int32_t segs_per_zone = get_sb(segs_per_sec) * get_sb(secs_per_zone); in get_new_sb()
26 get_sb(log_sectors_per_block)); in get_new_sb()
39 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in get_new_sb()
42 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + in get_new_sb()
43 get_sb(segment_count_sit) * blks_per_seg); in get_new_sb()
45 total_valid_blks_available = (get_sb(segment_count) - in get_new_sb()
46 (get_sb(segment_count_ckpt) + in get_new_sb()
[all …]
Dmount.c477 u32 segment0_blkaddr = get_sb(segment0_blkaddr); in sanity_check_area_boundary()
478 u32 cp_blkaddr = get_sb(cp_blkaddr); in sanity_check_area_boundary()
479 u32 sit_blkaddr = get_sb(sit_blkaddr); in sanity_check_area_boundary()
480 u32 nat_blkaddr = get_sb(nat_blkaddr); in sanity_check_area_boundary()
481 u32 ssa_blkaddr = get_sb(ssa_blkaddr); in sanity_check_area_boundary()
482 u32 main_blkaddr = get_sb(main_blkaddr); in sanity_check_area_boundary()
483 u32 segment_count_ckpt = get_sb(segment_count_ckpt); in sanity_check_area_boundary()
484 u32 segment_count_sit = get_sb(segment_count_sit); in sanity_check_area_boundary()
485 u32 segment_count_nat = get_sb(segment_count_nat); in sanity_check_area_boundary()
486 u32 segment_count_ssa = get_sb(segment_count_ssa); in sanity_check_area_boundary()
[all …]
Dmain.c604 if (c.defrag_start > get_sb(block_count)) in do_defrag()
612 if (c.defrag_start + c.defrag_len > get_sb(block_count)) in do_defrag()
613 c.defrag_len = get_sb(block_count) - c.defrag_start; in do_defrag()
622 c.defrag_target > get_sb(block_count)) in do_defrag()
664 get_sb(log_blocksize)) <= get_sb(block_count)) { in do_resize()
Dfsck.c1573 start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); in fsck_chk_orphan_node()
1574 orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); in fsck_chk_orphan_node()
1936 set_cp(cp_pack_total_block_count, 8 + orphan_blks + get_sb(cp_payload)); in fix_checkpoint()
1950 cp_blk_no = get_sb(cp_blkaddr); in fix_checkpoint()
1952 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in fix_checkpoint()
1957 for (i = 0; i < get_sb(cp_payload); i++) { in fix_checkpoint()
Ddump.c51 nr_nat_blks = get_sb(segment_count_nat) << in nat_dump()
/external/f2fs-tools/mkfs/
Df2fs_format.c215 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
217 if (c.zoned_mode && (get_sb(segment0_blkaddr) + c.start_sector / in f2fs_prepare_super_block()
220 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
256 set_sb(sit_blkaddr, get_sb(segment0_blkaddr) + in f2fs_prepare_super_block()
257 get_sb(segment_count_ckpt) * c.blks_per_seg); in f2fs_prepare_super_block()
259 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()
265 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + get_sb(segment_count_sit) * in f2fs_prepare_super_block()
268 total_valid_blks_available = (get_sb(segment_count) - in f2fs_prepare_super_block()
269 (get_sb(segment_count_ckpt) + in f2fs_prepare_super_block()
270 get_sb(segment_count_sit))) * c.blks_per_seg; in f2fs_prepare_super_block()
[all …]
/external/f2fs-tools/include/
Df2fs_fs.h418 #define get_sb(member) \ macro
1229 if (get_sb(segment_count_main) < 256) { in get_best_overprovision()
1241 get_sb(segs_per_sec); in get_best_overprovision()
1242 ovp = (get_sb(segment_count_main) - reserved) * candidate / 100; in get_best_overprovision()
1243 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,