Searched refs:segs_per_sec (Results 1 – 9 of 9) sorted by relevance
| /Linux-v5.4/fs/f2fs/ |
| D | segment.h | 41 (sbi)->segs_per_sec) || \ 43 (sbi)->segs_per_sec) || \ 45 (sbi)->segs_per_sec) || \ 47 (sbi)->segs_per_sec) || \ 49 (sbi)->segs_per_sec) || \ 51 (sbi)->segs_per_sec)) \ 89 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg) 91 ((segno) / (sbi)->segs_per_sec) 93 ((secno) * (sbi)->segs_per_sec) 426 start_segno + sbi->segs_per_sec, start_segno); in __set_free() [all …]
|
| D | gc.c | 192 p->ofs_unit = sbi->segs_per_sec; in select_policy() 253 for (i = 0; i < sbi->segs_per_sec; i++) in get_cb_cost() 257 mtime = div_u64(mtime, sbi->segs_per_sec); in get_cb_cost() 258 vblocks = div_u64(vblocks, sbi->segs_per_sec); in get_cb_cost() 318 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in get_victim_by_default() 420 (MAIN_SECS(sbi) * sbi->segs_per_sec); in get_victim_by_default() 1155 unsigned int end_segno = start_segno + sbi->segs_per_sec; in do_garbage_collect() 1162 end_segno = rounddown(end_segno, sbi->segs_per_sec); in do_garbage_collect() 1317 if (gc_type == FG_GC && seg_freed == sbi->segs_per_sec) in f2fs_gc() 1398 for (segno = start; segno <= end; segno += sbi->segs_per_sec) { in free_segment_range() [all …]
|
| D | super.c | 2503 block_t segment_count, segs_per_sec, secs_per_zone; in sanity_check_raw_super() local 2574 segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in sanity_check_raw_super() 2589 segs_per_sec > segment_count || !segs_per_sec) { in sanity_check_raw_super() 2591 segment_count, total_sections, segs_per_sec); in sanity_check_raw_super() 2595 if ((segment_count / segs_per_sec) < total_sections) { in sanity_check_raw_super() 2597 segment_count, segs_per_sec, total_sections); in sanity_check_raw_super() 2801 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info() 2814 sbi->migration_granularity = sbi->segs_per_sec; in init_sb_info()
|
| D | segment.c | 1949 start = rounddown(start, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 1950 end = roundup(end, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 1976 sbi->segs_per_sec << sbi->log_blocks_per_seg); in f2fs_clear_prefree_segments() 1978 start = start_segno + sbi->segs_per_sec; in f2fs_clear_prefree_segments() 2355 if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) in is_next_segment_free() 2379 if (!new_sec && ((*newseg + 1) % sbi->segs_per_sec)) { in get_new_segment() 2834 start_segno = rounddown(start_segno, sbi->segs_per_sec); in f2fs_trim_fs() 2835 end_segno = roundup(end_segno + 1, sbi->segs_per_sec) - 1; in f2fs_trim_fs() 4346 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in init_min_max_mtime() 4350 for (i = 0; i < sbi->segs_per_sec; i++) in init_min_max_mtime() [all …]
|
| D | f2fs.h | 1249 unsigned int segs_per_sec; /* segments per section */ member 1917 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs() 1921 return segs / sbi->segs_per_sec; in get_blocktype_secs() 2869 #define __is_large_section(sbi) ((sbi)->segs_per_sec > 1)
|
| D | debug.c | 163 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in update_sit_info()
|
| D | sysfs.c | 286 if (t == 0 || t > sbi->segs_per_sec) in __sbi_store()
|
| D | file.c | 2752 range.dev_num, sbi->s_ndevs, sbi->segs_per_sec); in f2fs_ioc_flush_device()
|
| /Linux-v5.4/include/linux/ |
| D | f2fs_fs.h | 85 __le32 segs_per_sec; /* # of segments per section */ member
|