Home
last modified time | relevance | path

Searched refs:vblocks (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dgc.c338 unsigned int vblocks; in get_cb_cost() local
346 vblocks = get_valid_blocks(sbi, segno, true); in get_cb_cost()
349 vblocks = div_u64(vblocks, usable_segs_per_sec); in get_cb_cost()
351 u = (vblocks * 100) >> sbi->log_blocks_per_seg; in get_cb_cost()
533 unsigned int vblocks; in atgc_lookup_victim() local
564 vblocks = get_valid_blocks(sbi, ve->segno, true); in atgc_lookup_victim()
565 f2fs_bug_on(sbi, !vblocks || vblocks == sec_blocks); in atgc_lookup_victim()
602 unsigned int vblocks; in atssr_lookup_victim() local
628 f2fs_bug_on(sbi, !vblocks); in atssr_lookup_victim()
631 if (vblocks == BLKS_PER_SEG(sbi)) in atssr_lookup_victim()
[all …]
H A Ddebug.c37 unsigned int segno, vblocks; in f2fs_update_sit_info() local
45 vblocks = get_valid_blocks(sbi, segno, true); in f2fs_update_sit_info()
46 dist = abs(vblocks - hblks_per_sec); in f2fs_update_sit_info()
49 if (vblocks > 0 && vblocks < blks_per_sec) { in f2fs_update_sit_info()
50 total_vblocks += vblocks; in f2fs_update_sit_info()
H A Dsegment.h385 rs->vblocks = cpu_to_le16(raw_vblocks); in __seg_info_to_raw_sit()
/openbmc/linux/include/linux/
H A Df2fs_fs.h399 (le16_to_cpu((raw_sit)->vblocks) & SIT_VBLOCKS_MASK)
401 ((le16_to_cpu((raw_sit)->vblocks) & ~SIT_VBLOCKS_MASK) \
405 __le16 vblocks; /* reference above */ member