Home
last modified time | relevance | path

Searched refs:get_sb (Results 1 – 10 of 10) 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.c687 if (get_sb(feature) & F2FS_FEATURE_SB_CHKSUM) { in update_superblock()
688 old_crc = get_sb(crc); in update_superblock()
711 u32 segment0_blkaddr = get_sb(segment0_blkaddr); in sanity_check_area_boundary()
712 u32 cp_blkaddr = get_sb(cp_blkaddr); in sanity_check_area_boundary()
713 u32 sit_blkaddr = get_sb(sit_blkaddr); in sanity_check_area_boundary()
714 u32 nat_blkaddr = get_sb(nat_blkaddr); in sanity_check_area_boundary()
715 u32 ssa_blkaddr = get_sb(ssa_blkaddr); in sanity_check_area_boundary()
716 u32 main_blkaddr = get_sb(main_blkaddr); in sanity_check_area_boundary()
717 u32 segment_count_ckpt = get_sb(segment_count_ckpt); in sanity_check_area_boundary()
718 u32 segment_count_sit = get_sb(segment_count_sit); in sanity_check_area_boundary()
[all …]
Dmain.c918 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) { in do_defrag()
923 if (c.defrag_start > get_sb(block_count)) in do_defrag()
931 if (c.defrag_start + c.defrag_len > get_sb(block_count)) in do_defrag()
932 c.defrag_len = get_sb(block_count) - c.defrag_start; in do_defrag()
941 c.defrag_target > get_sb(block_count)) in do_defrag()
Dfsck.c155 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_node_blk()
276 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_data_blk()
1764 start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); in fsck_chk_orphan_node()
1765 orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); in fsck_chk_orphan_node()
2192 orphan_blks + get_sb(cp_payload)); in fix_checkpoint()
2207 cp_blk_no = get_sb(cp_blkaddr); in fix_checkpoint()
2209 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in fix_checkpoint()
2214 for (i = 0; i < get_sb(cp_payload); i++) { in fix_checkpoint()
2388 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO) && in check_curseg_offset()
2985 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in fsck_chk_curseg_info()
Dnode.c93 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_node_block()
Dsegment.c113 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_data_block()
/external/f2fs-tools/mkfs/
Df2fs_format.c150 sb->hot_ext_count = pos - get_sb(extension_count);; in cure_extension_list()
174 sb->hot_ext_count = pos - get_sb(extension_count); in cure_extension_list()
275 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
279 (get_sb(segment0_blkaddr) + c.start_sector / in f2fs_prepare_super_block()
284 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()
320 set_sb(sit_blkaddr, get_sb(segment0_blkaddr) + in f2fs_prepare_super_block()
321 get_sb(segment_count_ckpt) * c.blks_per_seg); in f2fs_prepare_super_block()
323 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()
329 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + get_sb(segment_count_sit) * in f2fs_prepare_super_block()
332 total_valid_blks_available = (get_sb(segment_count) - in f2fs_prepare_super_block()
[all …]
/external/f2fs-tools/lib/
Dlibf2fs_zoned.c499 return get_sb(segment_count_main); in f2fs_get_usable_segments()
508 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()
516 usable_segs -= (get_sb(main_blkaddr) - get_sb(segment0_blkaddr)) >> in f2fs_get_usable_segments()
517 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()
520 return get_sb(segment_count_main); in f2fs_get_usable_segments()
579 return get_sb(segment_count_main); in f2fs_get_usable_segments()
/external/f2fs-tools/include/
Df2fs_fs.h573 #define get_sb(member) \ macro
1491 if (get_sb(segment_count_main) < 256) { in get_best_overprovision()
1503 round_up(usable_main_segs, get_sb(section_count)); in get_best_overprovision()
/external/squashfs-tools/kernel/fs/squashfs/
Dsuper.c423 .get_sb = squashfs_get_sb,