Lines Matching refs:vblocks
340 unsigned int vblocks; in get_cb_cost() local
348 vblocks = get_valid_blocks(sbi, segno, true); in get_cb_cost()
351 vblocks = div_u64(vblocks, usable_segs_per_sec); in get_cb_cost()
353 u = (vblocks * 100) >> sbi->log_blocks_per_seg; in get_cb_cost()
535 unsigned int vblocks; in atgc_lookup_victim() local
566 vblocks = get_valid_blocks(sbi, ve->segno, true); in atgc_lookup_victim()
567 f2fs_bug_on(sbi, !vblocks || vblocks == sec_blocks); in atgc_lookup_victim()
570 u = div64_u64(accu * (sec_blocks - vblocks), sec_blocks) * in atgc_lookup_victim()
604 unsigned int vblocks; in atssr_lookup_victim() local
629 vblocks = get_seg_entry(sbi, ve->segno)->ckpt_valid_blocks; in atssr_lookup_victim()
630 f2fs_bug_on(sbi, !vblocks); in atssr_lookup_victim()
633 if (vblocks == BLKS_PER_SEG(sbi)) in atssr_lookup_victim()
639 cost = UINT_MAX - vblocks; in atssr_lookup_victim()