Searched refs:segs_per_sec (Results 1 – 8 of 8) sorted by relevance
/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) 428 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() 1161 unsigned int end_segno = start_segno + sbi->segs_per_sec; in do_garbage_collect() 1168 end_segno = rounddown(end_segno, sbi->segs_per_sec); in do_garbage_collect() 1323 if (gc_type == FG_GC && seg_freed == sbi->segs_per_sec) in f2fs_gc() 1404 for (segno = start; segno <= end; segno += sbi->segs_per_sec) { in free_segment_range() [all …]
|
D | super.c | 2566 block_t segment_count, segs_per_sec, secs_per_zone; in sanity_check_raw_super() local 2637 segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in sanity_check_raw_super() 2652 segs_per_sec > segment_count || !segs_per_sec) { in sanity_check_raw_super() 2654 segment_count, total_sections, segs_per_sec); in sanity_check_raw_super() 2658 if ((segment_count / segs_per_sec) < total_sections) { in sanity_check_raw_super() 2660 segment_count, segs_per_sec, total_sections); in sanity_check_raw_super() 2879 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info() 2892 sbi->migration_granularity = sbi->segs_per_sec; in init_sb_info()
|
D | segment.c | 1960 start = rounddown(start, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 1961 end = roundup(end, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 1987 sbi->segs_per_sec << sbi->log_blocks_per_seg); in f2fs_clear_prefree_segments() 1989 start = start_segno + sbi->segs_per_sec; in f2fs_clear_prefree_segments() 2366 if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) in is_next_segment_free() 2390 if (!new_sec && ((*newseg + 1) % sbi->segs_per_sec)) { in get_new_segment() 2852 start_segno = rounddown(start_segno, sbi->segs_per_sec); in f2fs_trim_fs() 2853 end_segno = roundup(end_segno + 1, sbi->segs_per_sec) - 1; in f2fs_trim_fs() 4383 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in init_min_max_mtime() 4387 for (i = 0; i < sbi->segs_per_sec; i++) in init_min_max_mtime() [all …]
|
D | f2fs.h | 1260 unsigned int segs_per_sec; /* segments per section */ member 1931 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs() 1935 return segs / sbi->segs_per_sec; in get_blocktype_secs() 2891 #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 | 288 if (t == 0 || t > sbi->segs_per_sec) in __sbi_store()
|
D | file.c | 2788 range.dev_num, sbi->s_ndevs, sbi->segs_per_sec); in f2fs_ioc_flush_device()
|