• Home
  • Raw
  • Download

Lines Matching refs:get_sb

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()
715 u32 segment_count_nat = get_sb(segment_count_nat); in sanity_check_area_boundary()
716 u32 segment_count_ssa = get_sb(segment_count_ssa); in sanity_check_area_boundary()
717 u32 segment_count_main = get_sb(segment_count_main); in sanity_check_area_boundary()
718 u32 segment_count = get_sb(segment_count); in sanity_check_area_boundary()
719 u32 log_blocks_per_seg = get_sb(log_blocks_per_seg); in sanity_check_area_boundary()
786 if (SB_CHKSUM_OFFSET != get_sb(checksum_offset)) { in verify_sb_chksum()
788 get_sb(checksum_offset)); in verify_sb_chksum()
791 if (f2fs_crc_valid(get_sb(crc), sb, in verify_sb_chksum()
792 get_sb(checksum_offset))) { in verify_sb_chksum()
793 MSG(0, "\tInvalid SB CRC: 0x%x\n", get_sb(crc)); in verify_sb_chksum()
805 if ((get_sb(feature) & F2FS_FEATURE_SB_CHKSUM) && in sanity_check_raw_super()
809 if (F2FS_SUPER_MAGIC != get_sb(magic)) { in sanity_check_raw_super()
811 F2FS_SUPER_MAGIC, get_sb(magic)); in sanity_check_raw_super()
821 blocksize = 1 << get_sb(log_blocksize); in sanity_check_raw_super()
829 if (get_sb(log_blocks_per_seg) != 9) { in sanity_check_raw_super()
831 get_sb(log_blocks_per_seg)); in sanity_check_raw_super()
836 if (get_sb(log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE || in sanity_check_raw_super()
837 get_sb(log_sectorsize) < F2FS_MIN_LOG_SECTOR_SIZE) { in sanity_check_raw_super()
838 MSG(0, "Invalid log sectorsize (%u)\n", get_sb(log_sectorsize)); in sanity_check_raw_super()
842 if (get_sb(log_sectors_per_block) + get_sb(log_sectorsize) != in sanity_check_raw_super()
845 get_sb(log_sectors_per_block), in sanity_check_raw_super()
846 get_sb(log_sectorsize)); in sanity_check_raw_super()
850 segment_count = get_sb(segment_count); in sanity_check_raw_super()
851 segs_per_sec = get_sb(segs_per_sec); in sanity_check_raw_super()
852 secs_per_zone = get_sb(secs_per_zone); in sanity_check_raw_super()
853 total_sections = get_sb(section_count); in sanity_check_raw_super()
857 blocks_per_seg = 1 << get_sb(log_blocks_per_seg); in sanity_check_raw_super()
865 if (!(get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in sanity_check_raw_super()
880 if (segment_count > (get_sb(block_count) >> 9)) { in sanity_check_raw_super()
882 segment_count, get_sb(block_count)); in sanity_check_raw_super()
906 if (get_sb(extension_count) > F2FS_MAX_EXTENSION || in sanity_check_raw_super()
908 get_sb(extension_count) + in sanity_check_raw_super()
911 get_sb(extension_count), in sanity_check_raw_super()
917 if (get_sb(cp_payload) > (blocks_per_seg - F2FS_CP_PACKS)) { in sanity_check_raw_super()
919 get_sb(cp_payload), blocks_per_seg - F2FS_CP_PACKS); in sanity_check_raw_super()
924 if (get_sb(node_ino) != 1 || get_sb(meta_ino) != 2 || in sanity_check_raw_super()
925 get_sb(root_ino) != 3) { in sanity_check_raw_super()
927 get_sb(node_ino), get_sb(meta_ino), get_sb(root_ino)); in sanity_check_raw_super()
1077 sbi->log_sectors_per_block = get_sb(log_sectors_per_block); in init_sb_info()
1078 sbi->log_blocksize = get_sb(log_blocksize); in init_sb_info()
1080 sbi->log_blocks_per_seg = get_sb(log_blocks_per_seg); in init_sb_info()
1082 sbi->segs_per_sec = get_sb(segs_per_sec); in init_sb_info()
1083 sbi->secs_per_zone = get_sb(secs_per_zone); in init_sb_info()
1084 sbi->total_sections = get_sb(section_count); in init_sb_info()
1085 sbi->total_node_count = (get_sb(segment_count_nat) / 2) * in init_sb_info()
1087 sbi->root_ino_num = get_sb(root_ino); in init_sb_info()
1088 sbi->node_ino_num = get_sb(node_ino); in init_sb_info()
1089 sbi->meta_ino_num = get_sb(meta_ino); in init_sb_info()
1114 c.devices[i].end_blkaddr += get_sb(segment0_blkaddr); in init_sb_info()
1123 total_sectors = get_sb(block_count) << sbi->log_sectors_per_block; in init_sb_info()
1128 (20 - get_sb(log_sectorsize))); in init_sb_info()
1220 cp_payload = get_sb(cp_payload); in get_valid_checkpoint()
1232 cp_start_blk_no = get_sb(cp_blkaddr); in get_valid_checkpoint()
1236 cp_start_blk_no += 1 << get_sb(log_blocks_per_seg); in get_valid_checkpoint()
1268 cp_blk_no = get_sb(cp_blkaddr); in get_valid_checkpoint()
1270 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in get_valid_checkpoint()
1327 total = get_sb(segment_count); in sanity_check_ckpt()
1328 fsmeta = get_sb(segment_count_ckpt); in sanity_check_ckpt()
1329 sit_segs = get_sb(segment_count_sit); in sanity_check_ckpt()
1331 nat_segs = get_sb(segment_count_nat); in sanity_check_ckpt()
1334 fsmeta += get_sb(segment_count_ssa); in sanity_check_ckpt()
1342 if (!(get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in sanity_check_ckpt()
1350 segment_count_main = get_sb(segment_count_main) + in sanity_check_ckpt()
1352 log_blocks_per_seg = get_sb(log_blocks_per_seg); in sanity_check_ckpt()
1364 u32 seg_cnt_main = get_sb(segment_count) - in sanity_check_ckpt()
1365 (get_sb(segment_count_ckpt) + in sanity_check_ckpt()
1366 get_sb(segment_count_sit) + in sanity_check_ckpt()
1367 get_sb(segment_count_nat) + in sanity_check_ckpt()
1368 get_sb(segment_count_ssa)); in sanity_check_ckpt()
1371 if (seg_cnt_main != get_sb(segment_count_main)) { in sanity_check_ckpt()
1376 valid_user_block_cnt = ((get_sb(segment_count_main) - in sanity_check_ckpt()
1385 main_segs = get_sb(segment_count_main); in sanity_check_ckpt()
1416 if ((get_sb(feature) & F2FS_FEATURE_SB_CHKSUM)) in sanity_check_ckpt()
1544 nat_bits_bytes = get_sb(segment_count_nat) << 5; in update_nat_bits_flags()
1548 (1 << get_sb(log_blocks_per_seg)) - nat_bits_blocks) in update_nat_bits_flags()
1561 uint32_t nat_blocks = get_sb(segment_count_nat) << in write_nat_bits()
1562 (get_sb(log_blocks_per_seg) - 1); in write_nat_bits()
1585 int seg_off = i >> get_sb(log_blocks_per_seg); in write_nat_bits()
1588 blkaddr = (pgoff_t)(get_sb(nat_blkaddr) + in write_nat_bits()
1589 (seg_off << get_sb(log_blocks_per_seg) << 1) + in write_nat_bits()
1590 (i & ((1 << get_sb(log_blocks_per_seg)) - 1))); in write_nat_bits()
1598 blkaddr += (1 << get_sb(log_blocks_per_seg)); in write_nat_bits()
1616 blkaddr = get_sb(segment0_blkaddr) + (set << in write_nat_bits()
1617 get_sb(log_blocks_per_seg)) - nat_bits_blocks; in write_nat_bits()
1634 uint32_t nat_blocks = get_sb(segment_count_nat) << in check_nat_bits()
1635 (get_sb(log_blocks_per_seg) - 1); in check_nat_bits()
1652 blkaddr = get_sb(segment0_blkaddr) + (sbi->cur_cp << in check_nat_bits()
1653 get_sb(log_blocks_per_seg)) - nat_bits_blocks; in check_nat_bits()
1717 nm_i->nat_blkaddr = get_sb(nat_blkaddr); in init_node_manager()
1720 nat_segs = get_sb(segment_count_nat) >> 1; in init_node_manager()
1721 nm_i->nat_blocks = nat_segs << get_sb(log_blocks_per_seg); in init_node_manager()
1804 sit_segs = get_sb(segment_count_sit) >> 1; in build_sit_info()
1816 sit_i->sit_base_addr = get_sb(sit_blkaddr); in build_sit_info()
1980 if (get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) in update_sum_entry()
2464 sm_info->seg0_blkaddr = get_sb(segment0_blkaddr); in early_build_segment_manager()
2465 sm_info->main_blkaddr = get_sb(main_blkaddr); in early_build_segment_manager()
2466 sm_info->segment_count = get_sb(segment_count); in early_build_segment_manager()
2469 sm_info->main_segments = get_sb(segment_count_main); in early_build_segment_manager()
2470 sm_info->ssa_blkaddr = get_sb(ssa_blkaddr); in early_build_segment_manager()
2795 u64 end_blkaddr = (get_sb(segment_count_main) << in find_next_free_block()
2796 get_sb(log_blocks_per_seg)) + get_sb(main_blkaddr); in find_next_free_block()
2823 if (!(get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO)) && in find_next_free_block()
2865 if ((get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO))) { in move_one_curseg_info()
3011 unsigned int seg_size = 1 << get_sb(log_blocks_per_seg); in duplicate_checkpoint()
3021 src = get_sb(cp_blkaddr); in duplicate_checkpoint()
3024 dst = get_sb(cp_blkaddr); in duplicate_checkpoint()
3084 set_cp(cp_pack_total_block_count, 8 + orphan_blks + get_sb(cp_payload)); in write_checkpoint()
3093 cp_blk_no = get_sb(cp_blkaddr); in write_checkpoint()
3095 cp_blk_no += 1 << get_sb(log_blocks_per_seg); in write_checkpoint()
3102 cp_blk_no += get_sb(cp_payload); in write_checkpoint()
3114 if (!(get_sb(feature) & cpu_to_le32(F2FS_FEATURE_RO))) { in write_checkpoint()
3168 nr_nat_blks = (get_sb(segment_count_nat) / 2) << in build_nat_area_bitmap()
3291 if (log_sectorsize == get_sb(log_sectorsize) && in check_sector_size()
3292 log_sectors_per_block == get_sb(log_sectors_per_block)) in check_sector_size()
3726 uint32_t seg_size = 1 << get_sb(log_blocks_per_seg); in f2fs_sparse_initialize_meta()
3732 sit_seg_addr = get_sb(sit_blkaddr); in f2fs_sparse_initialize_meta()
3733 sit_seg_count = get_sb(segment_count_sit); in f2fs_sparse_initialize_meta()
3746 nat_seg_addr = get_sb(nat_blkaddr); in f2fs_sparse_initialize_meta()
3747 nat_seg_count = get_sb(segment_count_nat); in f2fs_sparse_initialize_meta()
3760 payload_addr = get_sb(segment0_blkaddr) + 1; in f2fs_sparse_initialize_meta()
3763 payload_addr, get_sb(cp_payload)); in f2fs_sparse_initialize_meta()
3765 get_sb(cp_payload) * F2FS_BLKSIZE); in f2fs_sparse_initialize_meta()
3775 payload_addr, get_sb(cp_payload)); in f2fs_sparse_initialize_meta()
3777 get_sb(cp_payload) * F2FS_BLKSIZE); in f2fs_sparse_initialize_meta()