Lines Matching refs:raw_super

2076 	kfree(sbi->raw_super);  in f2fs_put_super()
2221 total_count = le64_to_cpu(sbi->raw_super->block_count); in f2fs_statfs()
2222 start_count = le32_to_cpu(sbi->raw_super->segment0_blkaddr); in f2fs_statfs()
3875 struct f2fs_super_block *raw_super = F2FS_SUPER_BLOCK(folio, index); in sanity_check_area_boundary() local
3877 u32 segment0_blkaddr = le32_to_cpu(raw_super->segment0_blkaddr); in sanity_check_area_boundary()
3878 u32 cp_blkaddr = le32_to_cpu(raw_super->cp_blkaddr); in sanity_check_area_boundary()
3879 u32 sit_blkaddr = le32_to_cpu(raw_super->sit_blkaddr); in sanity_check_area_boundary()
3880 u32 nat_blkaddr = le32_to_cpu(raw_super->nat_blkaddr); in sanity_check_area_boundary()
3881 u32 ssa_blkaddr = le32_to_cpu(raw_super->ssa_blkaddr); in sanity_check_area_boundary()
3882 u32 main_blkaddr = le32_to_cpu(raw_super->main_blkaddr); in sanity_check_area_boundary()
3883 u32 segment_count_ckpt = le32_to_cpu(raw_super->segment_count_ckpt); in sanity_check_area_boundary()
3884 u32 segment_count_sit = le32_to_cpu(raw_super->segment_count_sit); in sanity_check_area_boundary()
3885 u32 segment_count_nat = le32_to_cpu(raw_super->segment_count_nat); in sanity_check_area_boundary()
3886 u32 segment_count_ssa = le32_to_cpu(raw_super->segment_count_ssa); in sanity_check_area_boundary()
3887 u32 segment_count_main = le32_to_cpu(raw_super->segment_count_main); in sanity_check_area_boundary()
3888 u32 segment_count = le32_to_cpu(raw_super->segment_count); in sanity_check_area_boundary()
3889 u32 log_blocks_per_seg = le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_area_boundary()
3943 raw_super->segment_count = cpu_to_le32((main_end_blkaddr - in sanity_check_area_boundary()
3967 struct f2fs_super_block *raw_super = F2FS_SUPER_BLOCK(folio, index); in sanity_check_raw_super() local
3971 if (le32_to_cpu(raw_super->magic) != F2FS_SUPER_MAGIC) { in sanity_check_raw_super()
3973 F2FS_SUPER_MAGIC, le32_to_cpu(raw_super->magic)); in sanity_check_raw_super()
3978 if (__F2FS_HAS_FEATURE(raw_super, F2FS_FEATURE_SB_CHKSUM)) { in sanity_check_raw_super()
3979 crc_offset = le32_to_cpu(raw_super->checksum_offset); in sanity_check_raw_super()
3986 crc = le32_to_cpu(raw_super->crc); in sanity_check_raw_super()
3987 if (crc != f2fs_crc32(raw_super, crc_offset)) { in sanity_check_raw_super()
3994 if (le32_to_cpu(raw_super->log_blocksize) != F2FS_BLKSIZE_BITS) { in sanity_check_raw_super()
3996 le32_to_cpu(raw_super->log_blocksize), in sanity_check_raw_super()
4002 if (le32_to_cpu(raw_super->log_blocks_per_seg) != 9) { in sanity_check_raw_super()
4004 le32_to_cpu(raw_super->log_blocks_per_seg)); in sanity_check_raw_super()
4009 if (le32_to_cpu(raw_super->log_sectorsize) > in sanity_check_raw_super()
4011 le32_to_cpu(raw_super->log_sectorsize) < in sanity_check_raw_super()
4014 le32_to_cpu(raw_super->log_sectorsize)); in sanity_check_raw_super()
4017 if (le32_to_cpu(raw_super->log_sectors_per_block) + in sanity_check_raw_super()
4018 le32_to_cpu(raw_super->log_sectorsize) != in sanity_check_raw_super()
4021 le32_to_cpu(raw_super->log_sectors_per_block), in sanity_check_raw_super()
4022 le32_to_cpu(raw_super->log_sectorsize)); in sanity_check_raw_super()
4026 segment_count = le32_to_cpu(raw_super->segment_count); in sanity_check_raw_super()
4027 segment_count_main = le32_to_cpu(raw_super->segment_count_main); in sanity_check_raw_super()
4028 segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in sanity_check_raw_super()
4029 secs_per_zone = le32_to_cpu(raw_super->secs_per_zone); in sanity_check_raw_super()
4030 total_sections = le32_to_cpu(raw_super->section_count); in sanity_check_raw_super()
4033 blocks_per_seg = BIT(le32_to_cpu(raw_super->log_blocks_per_seg)); in sanity_check_raw_super()
4060 if (segment_count > (le64_to_cpu(raw_super->block_count) >> 9)) { in sanity_check_raw_super()
4062 segment_count, le64_to_cpu(raw_super->block_count)); in sanity_check_raw_super()
4080 if (__F2FS_HAS_FEATURE(raw_super, F2FS_FEATURE_BLKZONED) && in sanity_check_raw_super()
4092 if (le32_to_cpu(raw_super->extension_count) > F2FS_MAX_EXTENSION || in sanity_check_raw_super()
4093 raw_super->hot_ext_count > F2FS_MAX_EXTENSION || in sanity_check_raw_super()
4094 (le32_to_cpu(raw_super->extension_count) + in sanity_check_raw_super()
4095 raw_super->hot_ext_count) > F2FS_MAX_EXTENSION) { in sanity_check_raw_super()
4097 le32_to_cpu(raw_super->extension_count), in sanity_check_raw_super()
4098 raw_super->hot_ext_count, in sanity_check_raw_super()
4103 if (le32_to_cpu(raw_super->cp_payload) >= in sanity_check_raw_super()
4107 le32_to_cpu(raw_super->cp_payload), in sanity_check_raw_super()
4114 if (le32_to_cpu(raw_super->node_ino) != 1 || in sanity_check_raw_super()
4115 le32_to_cpu(raw_super->meta_ino) != 2 || in sanity_check_raw_super()
4116 le32_to_cpu(raw_super->root_ino) != 3) { in sanity_check_raw_super()
4118 le32_to_cpu(raw_super->node_ino), in sanity_check_raw_super()
4119 le32_to_cpu(raw_super->meta_ino), in sanity_check_raw_super()
4120 le32_to_cpu(raw_super->root_ino)); in sanity_check_raw_super()
4134 struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); in f2fs_sanity_check_ckpt() local
4149 total = le32_to_cpu(raw_super->segment_count); in f2fs_sanity_check_ckpt()
4150 fsmeta = le32_to_cpu(raw_super->segment_count_ckpt); in f2fs_sanity_check_ckpt()
4151 sit_segs = le32_to_cpu(raw_super->segment_count_sit); in f2fs_sanity_check_ckpt()
4153 nat_segs = le32_to_cpu(raw_super->segment_count_nat); in f2fs_sanity_check_ckpt()
4156 fsmeta += le32_to_cpu(raw_super->segment_count_ssa); in f2fs_sanity_check_ckpt()
4171 segment_count_main = le32_to_cpu(raw_super->segment_count_main) + in f2fs_sanity_check_ckpt()
4173 log_blocks_per_seg = le32_to_cpu(raw_super->log_blocks_per_seg); in f2fs_sanity_check_ckpt()
4196 main_segs = le32_to_cpu(raw_super->segment_count_main); in f2fs_sanity_check_ckpt()
4304 struct f2fs_super_block *raw_super = sbi->raw_super; in init_sb_info() local
4308 le32_to_cpu(raw_super->log_sectors_per_block); in init_sb_info()
4309 sbi->log_blocksize = le32_to_cpu(raw_super->log_blocksize); in init_sb_info()
4311 sbi->log_blocks_per_seg = le32_to_cpu(raw_super->log_blocks_per_seg); in init_sb_info()
4313 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info()
4314 sbi->secs_per_zone = le32_to_cpu(raw_super->secs_per_zone); in init_sb_info()
4315 sbi->total_sections = le32_to_cpu(raw_super->section_count); in init_sb_info()
4317 ((le32_to_cpu(raw_super->segment_count_nat) / 2) * in init_sb_info()
4319 sbi->allocate_section_hint = le32_to_cpu(raw_super->section_count); in init_sb_info()
4321 F2FS_ROOT_INO(sbi) = le32_to_cpu(raw_super->root_ino); in init_sb_info()
4322 F2FS_NODE_INO(sbi) = le32_to_cpu(raw_super->node_ino); in init_sb_info()
4323 F2FS_META_INO(sbi) = le32_to_cpu(raw_super->meta_ino); in init_sb_info()
4495 struct f2fs_super_block **raw_super, in read_raw_super_block() argument
4528 if (!*raw_super) { in read_raw_super_block()
4532 *raw_super = super; in read_raw_super_block()
4538 if (!*raw_super) in read_raw_super_block()
4600 struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); in f2fs_record_stop_reason() local
4612 memcpy(raw_super->s_stop_reason, sbi->stop_reason, MAX_STOP_REASON); in f2fs_record_stop_reason()
4751 struct f2fs_super_block *raw_super = F2FS_RAW_SUPER(sbi); in f2fs_scan_devices() local
4787 le32_to_cpu(raw_super->segment_count_main); in f2fs_scan_devices()
4808 le32_to_cpu(raw_super->segment0_blkaddr); in f2fs_scan_devices()
4865 encoding_info = f2fs_sb_read_encoding(sbi->raw_super); in f2fs_setup_casefold()
4872 encoding_flags = le16_to_cpu(sbi->raw_super->s_encoding_flags); in f2fs_setup_casefold()
4923 struct f2fs_super_block *raw_super; in f2fs_fill_super() local
4936 raw_super = NULL; in f2fs_fill_super()
4971 err = read_raw_super_block(sbi, &raw_super, &valid_super_block, in f2fs_fill_super()
4977 sbi->raw_super = raw_super; in f2fs_fill_super()
4980 memcpy(sbi->errors, raw_super->s_errors, MAX_F2FS_ERRORS); in f2fs_fill_super()
4981 memcpy(sbi->stop_reason, raw_super->s_stop_reason, MAX_STOP_REASON); in f2fs_fill_super()
4985 sbi->s_chksum_seed = f2fs_chksum(~0, raw_super->uuid, in f2fs_fill_super()
4986 sizeof(raw_super->uuid)); in f2fs_fill_super()
5001 le32_to_cpu(raw_super->log_blocksize); in f2fs_fill_super()
5042 super_set_uuid(sb, (void *) raw_super->uuid, sizeof(raw_super->uuid)); in f2fs_fill_super()
5420 kfree(raw_super); in f2fs_fill_super()