Searched refs:segs_per_sec (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/fs/f2fs/ |
D | segment.h | 51 (sbi)->segs_per_sec) || \ 53 (sbi)->segs_per_sec) || \ 55 (sbi)->segs_per_sec) || \ 57 (sbi)->segs_per_sec) || \ 59 (sbi)->segs_per_sec) || \ 61 (sbi)->segs_per_sec) || \ 63 (sbi)->segs_per_sec) || \ 65 (sbi)->segs_per_sec)) 103 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg) 105 ((sbi)->segs_per_sec * (sbi)->blocks_per_seg - \ [all …]
|
D | gc.c | 262 p->ofs_unit = sbi->segs_per_sec; in select_policy() 285 p->offset = get_random_u32_below(MAIN_SECS(sbi) * sbi->segs_per_sec); in select_policy() 499 for (i = 0; i < sbi->segs_per_sec; i++) in add_victim_entry() 501 mtime = div_u64(mtime, sbi->segs_per_sec); in add_victim_entry() 758 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in f2fs_get_victim() 899 (MAIN_SECS(sbi) * sbi->segs_per_sec); in f2fs_get_victim() 1684 unsigned int end_segno = start_segno + sbi->segs_per_sec; in do_garbage_collect() 1692 end_segno = rounddown(end_segno, sbi->segs_per_sec); in do_garbage_collect() 1700 end_segno -= sbi->segs_per_sec - in do_garbage_collect() 1997 start = MAIN_SECS(sbi) * sbi->segs_per_sec; in free_segment_range() [all …]
|
D | super.c | 333 unsigned int sec_blks = sbi->blocks_per_seg * sbi->segs_per_sec; in adjust_reserved_segment() 3461 block_t segment_count, segs_per_sec, secs_per_zone, segment_count_main; in sanity_check_raw_super() local 3525 segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in sanity_check_raw_super() 3539 segs_per_sec > segment_count || !segs_per_sec) { in sanity_check_raw_super() 3541 segment_count, total_sections, segs_per_sec); in sanity_check_raw_super() 3545 if (segment_count_main != total_sections * segs_per_sec) { in sanity_check_raw_super() 3547 segment_count_main, total_sections, segs_per_sec); in sanity_check_raw_super() 3551 if ((segment_count / segs_per_sec) < total_sections) { in sanity_check_raw_super() 3553 segment_count, segs_per_sec, total_sections); in sanity_check_raw_super() 3802 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info() [all …]
|
D | segment.c | 2162 start = rounddown(start, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 2163 end = roundup(end, sbi->segs_per_sec); in f2fs_clear_prefree_segments() 2191 sbi->segs_per_sec << sbi->log_blocks_per_seg); in f2fs_clear_prefree_segments() 2193 start = start_segno + sbi->segs_per_sec; in f2fs_clear_prefree_segments() 2630 if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) in is_next_segment_free() 2654 if (!new_sec && ((*newseg + 1) % sbi->segs_per_sec)) { in get_new_segment() 2757 return get_random_u32_below(MAIN_SECS(sbi) * sbi->segs_per_sec); in __get_next_segno() 3238 start_segno = rounddown(start_segno, sbi->segs_per_sec); in f2fs_trim_fs() 3239 end_segno = roundup(end_segno + 1, sbi->segs_per_sec) - 1; in f2fs_trim_fs() 4748 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in init_dirty_segmap() [all …]
|
D | f2fs.h | 1613 unsigned int segs_per_sec; /* segments per section */ member 2501 unsigned int pages_per_sec = sbi->segs_per_sec * sbi->blocks_per_seg; in get_blocktype_secs() 2505 return segs / sbi->segs_per_sec; in get_blocktype_secs() 3448 #define __is_large_section(sbi) ((sbi)->segs_per_sec > 1)
|
D | debug.c | 44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in f2fs_update_sit_info()
|
D | sysfs.c | 520 if (t == 0 || t > sbi->segs_per_sec) in __sbi_store()
|
D | file.c | 2986 range.dev_num, sbi->s_ndevs, sbi->segs_per_sec); in f2fs_ioc_flush_device()
|
/linux-6.6.21/include/linux/ |
D | f2fs_fs.h | 121 __le32 segs_per_sec; /* # of segments per section */ member
|