Lines Matching refs:blocks_per_seg
336 unsigned int sec_blks = sbi->blocks_per_seg * sbi->segs_per_sec; in adjust_reserved_segment()
358 if (wanted_reserved_segments * sbi->blocks_per_seg > in adjust_reserved_segment()
3297 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() local
3365 blocks_per_seg = 1 << le32_to_cpu(raw_super->log_blocks_per_seg); in sanity_check_raw_super()
3436 (blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super()
3440 blocks_per_seg - F2FS_CP_PACKS - in sanity_check_raw_super()
3469 unsigned int main_segs, blocks_per_seg; in f2fs_sanity_check_ckpt() local
3528 blocks_per_seg = sbi->blocks_per_seg; in f2fs_sanity_check_ckpt()
3532 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt()
3551 le16_to_cpu(ckpt->cur_data_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt()
3592 cp_pack_start_sum > blocks_per_seg - 1 - in f2fs_sanity_check_ckpt()
3613 NR_CURSEG_PERSIST_TYPE + nat_bits_blocks >= blocks_per_seg)) { in f2fs_sanity_check_ckpt()
3636 sbi->blocks_per_seg = 1 << sbi->log_blocks_per_seg; in init_sb_info()
3642 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; in init_sb_info()