Searched refs:vblocks (Results 1 – 3 of 3) sorted by relevance
89 unsigned int segno, vblocks; in update_sit_info() local98 vblocks = get_valid_blocks(sbi, segno, sbi->segs_per_sec); in update_sit_info()99 dist = abs(vblocks - hblks_per_sec); in update_sit_info()102 if (vblocks > 0 && vblocks < blks_per_sec) { in update_sit_info()103 total_vblocks += vblocks; in update_sit_info()
185 unsigned int vblocks; in get_cb_cost() local192 vblocks = get_valid_blocks(sbi, segno, sbi->segs_per_sec); in get_cb_cost()195 vblocks = div_u64(vblocks, sbi->segs_per_sec); in get_cb_cost()197 u = (vblocks * 100) >> sbi->log_blocks_per_seg; in get_cb_cost()
293 rs->vblocks = cpu_to_le16(raw_vblocks); in seg_info_to_raw_sit()386 block_t vblocks; in written_block_count() local389 vblocks = sit_i->written_valid_blocks; in written_block_count()392 return vblocks; in written_block_count()