Home
last modified time | relevance | path

Searched refs:segs_per_sec (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/fs/f2fs/
Dsegment.h50 (sbi)->segs_per_sec) || \
52 (sbi)->segs_per_sec) || \
54 (sbi)->segs_per_sec) || \
56 (sbi)->segs_per_sec) || \
58 (sbi)->segs_per_sec) || \
60 (sbi)->segs_per_sec) || \
62 (sbi)->segs_per_sec) || \
64 (sbi)->segs_per_sec))
102 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg)
104 ((segno) / (sbi)->segs_per_sec)
[all …]
Dgc.c218 p->ofs_unit = sbi->segs_per_sec; in select_policy()
401 for (i = 0; i < sbi->segs_per_sec; i++) in add_victim_entry()
403 mtime = div_u64(mtime, sbi->segs_per_sec); in add_victim_entry()
636 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in get_victim_by_default()
758 (MAIN_SECS(sbi) * sbi->segs_per_sec); in get_victim_by_default()
1530 unsigned int end_segno = start_segno + sbi->segs_per_sec; in do_garbage_collect()
1537 end_segno = rounddown(end_segno, sbi->segs_per_sec); in do_garbage_collect()
1545 end_segno -= sbi->segs_per_sec - in do_garbage_collect()
1816 start = MAIN_SECS(sbi) * sbi->segs_per_sec; in free_segment_range()
1834 for (segno = start; segno <= end; segno += sbi->segs_per_sec) { in free_segment_range()
[all …]
Dsuper.c2743 block_t segment_count, segs_per_sec, secs_per_zone, segment_count_main; in sanity_check_raw_super() local
2815 segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in sanity_check_raw_super()
2829 segs_per_sec > segment_count || !segs_per_sec) { in sanity_check_raw_super()
2831 segment_count, total_sections, segs_per_sec); in sanity_check_raw_super()
2835 if (segment_count_main != total_sections * segs_per_sec) { in sanity_check_raw_super()
2837 segment_count_main, total_sections, segs_per_sec); in sanity_check_raw_super()
2841 if ((segment_count / segs_per_sec) < total_sections) { in sanity_check_raw_super()
2843 segment_count, segs_per_sec, total_sections); in sanity_check_raw_super()
3068 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info()
3081 sbi->migration_granularity = sbi->segs_per_sec; in init_sb_info()
Dsegment.c1999 start = rounddown(start, sbi->segs_per_sec); in f2fs_clear_prefree_segments()
2000 end = roundup(end, sbi->segs_per_sec); in f2fs_clear_prefree_segments()
2026 sbi->segs_per_sec << sbi->log_blocks_per_seg); in f2fs_clear_prefree_segments()
2028 start = start_segno + sbi->segs_per_sec; in f2fs_clear_prefree_segments()
2438 if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) in is_next_segment_free()
2462 if (!new_sec && ((*newseg + 1) % sbi->segs_per_sec)) { in get_new_segment()
3065 start_segno = rounddown(start_segno, sbi->segs_per_sec); in f2fs_trim_fs()
3066 end_segno = roundup(end_segno + 1, sbi->segs_per_sec) - 1; in f2fs_trim_fs()
4679 for (s = sbi->segs_per_sec - 1; s >= 0; s--) { in check_zone_write_pointer()
4919 return sbi->segs_per_sec; in f2fs_usable_zone_segs_in_sec()
[all …]
Df2fs.h1491 unsigned int segs_per_sec; /* segments per section */ member
2183 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs()
2187 return segs / sbi->segs_per_sec; in get_blocktype_secs()
3124 #define __is_large_section(sbi) ((sbi)->segs_per_sec > 1)
Ddebug.c44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in f2fs_update_sit_info()
Dsysfs.c354 if (t == 0 || t > sbi->segs_per_sec) in __sbi_store()
Dfile.c2932 range.dev_num, sbi->s_ndevs, sbi->segs_per_sec); in f2fs_ioc_flush_device()
/Linux-v5.10/include/linux/
Df2fs_fs.h83 __le32 segs_per_sec; /* # of segments per section */ member