Searched refs:get_sb (Results 1 – 9 of 9) sorted by relevance
21 uint32_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 uint32_t blks_per_seg = 1 << get_sb(log_blocks_per_seg); in get_new_sb()24 uint32_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 …]
683 if (get_sb(feature) & F2FS_FEATURE_SB_CHKSUM) { in update_superblock()684 old_crc = get_sb(crc); in update_superblock()707 u32 segment0_blkaddr = get_sb(segment0_blkaddr); in sanity_check_area_boundary()708 u32 cp_blkaddr = get_sb(cp_blkaddr); in sanity_check_area_boundary()709 u32 sit_blkaddr = get_sb(sit_blkaddr); in sanity_check_area_boundary()710 u32 nat_blkaddr = get_sb(nat_blkaddr); in sanity_check_area_boundary()711 u32 ssa_blkaddr = get_sb(ssa_blkaddr); in sanity_check_area_boundary()712 u32 main_blkaddr = get_sb(main_blkaddr); in sanity_check_area_boundary()713 u32 segment_count_ckpt = get_sb(segment_count_ckpt); in sanity_check_area_boundary()714 u32 segment_count_sit = get_sb(segment_count_sit); in sanity_check_area_boundary()[all …]
928 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) { in do_defrag()933 if (c.defrag_start > get_sb(block_count)) in do_defrag()941 if (c.defrag_start + c.defrag_len > get_sb(block_count)) in do_defrag()942 c.defrag_len = get_sb(block_count) - c.defrag_start; in do_defrag()951 c.defrag_target > get_sb(block_count)) in do_defrag()
155 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_node_blk()280 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in is_valid_ssa_data_blk()1900 start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); in fsck_chk_orphan_node()1901 orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); in fsck_chk_orphan_node()2342 orphan_blks + get_sb(cp_payload)); in fix_checkpoint()2357 cp_blk_no = get_sb(cp_blkaddr); in fix_checkpoint()2359 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in fix_checkpoint()2364 for (i = 0; i < get_sb(cp_payload); i++) { in fix_checkpoint()2538 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO) && in check_curseg_offset()3138 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in fsck_chk_curseg_info()
140 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_node_block()
113 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in new_data_block()
160 sb->hot_ext_count = pos - get_sb(extension_count);; in cure_extension_list()184 sb->hot_ext_count = pos - get_sb(extension_count); in cure_extension_list()285 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()289 (get_sb(segment0_blkaddr) + c.start_sector / in f2fs_prepare_super_block()294 get_sb(segment0_blkaddr)); in f2fs_prepare_super_block()330 set_sb(sit_blkaddr, get_sb(segment0_blkaddr) + in f2fs_prepare_super_block()331 get_sb(segment_count_ckpt) * c.blks_per_seg); in f2fs_prepare_super_block()333 blocks_for_sit = SIZE_ALIGN(get_sb(segment_count), SIT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()339 set_sb(nat_blkaddr, get_sb(sit_blkaddr) + get_sb(segment_count_sit) * in f2fs_prepare_super_block()342 total_valid_blks_available = (get_sb(segment_count) - in f2fs_prepare_super_block()[all …]
511 return get_sb(segment_count_main); in f2fs_get_usable_segments()520 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()528 usable_segs -= (get_sb(main_blkaddr) - get_sb(segment0_blkaddr)) >> in f2fs_get_usable_segments()529 get_sb(log_blocks_per_seg); in f2fs_get_usable_segments()532 return get_sb(segment_count_main); in f2fs_get_usable_segments()591 return get_sb(segment_count_main); in f2fs_get_usable_segments()
597 #define get_sb(member) \ macro1578 if (get_sb(segment_count_main) < 256) { in get_best_overprovision()1590 round_up(usable_main_segs, get_sb(section_count)); in get_best_overprovision()