Lines Matching refs:valid_blocks
38 if (se->valid_blocks == 0x0 && !IS_CUR_SEGNO(sbi, i)) in get_free_segments()
1652 int valid_blocks = 0; in check_block_count() local
1666 valid_blocks += get_bits_in_byte(raw_sit->valid_map[i]); in check_block_count()
1668 if (GET_SIT_VBLOCKS(raw_sit) != valid_blocks) in check_block_count()
1670 segno, GET_SIT_VBLOCKS(raw_sit), valid_blocks); in check_block_count()
1680 se->valid_blocks = GET_SIT_VBLOCKS(raw_sit); in seg_info_from_raw_sit()
1981 if (se->valid_blocks == 0x0) { in build_sit_area_bitmap()
1993 sum_vblocks += se->valid_blocks; in build_sit_area_bitmap()
2024 u16 valid_blocks = 0; in rewrite_sit_area_bitmap() local
2034 valid_blocks += get_bits_in_byte(sit->valid_map[i]); in rewrite_sit_area_bitmap()
2038 se->valid_blocks = valid_blocks; in rewrite_sit_area_bitmap()
2042 segno, valid_blocks); in rewrite_sit_area_bitmap()
2046 valid_blocks); in rewrite_sit_area_bitmap()
2078 se->valid_blocks); in flush_sit_journal_entries()
2157 se->valid_blocks); in flush_sit_entries()
2185 if (se->valid_blocks == sbi->blocks_per_seg || in find_next_free_block()
2192 if (se->valid_blocks == 0 && not_enough) { in find_next_free_block()
2198 if (se->valid_blocks == 0 && !(segno % sbi->segs_per_sec)) { in find_next_free_block()
2204 if (se2->valid_blocks) in find_next_free_block()