Home
last modified time | relevance | path

Searched refs:SEGS_PER_SEC (Results 1 – 8 of 8) sorted by relevance

/linux/fs/f2fs/
H A Dsegment.h77 (SEGS_PER_SEC(sbi) - \
81 #define CAP_SEGS_PER_SEC(sbi) SEGS_PER_SEC(sbi)
84 (rounddown(segno, SEGS_PER_SEC(sbi)))
86 (((segno) == -1) ? -1 : (segno) / SEGS_PER_SEC(sbi))
88 ((secno) * SEGS_PER_SEC(sbi))
363 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in set_ckpt_valid_blocks()
380 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in sanity_check_valid_blocks()
471 start_segno + SEGS_PER_SEC(sbi), start_segno); in __set_free()
512 start_segno + SEGS_PER_SEC(sbi), start_segno); in __set_test_and_free()
H A Dgc.c291 p->ofs_unit = SEGS_PER_SEC(sbi); in select_policy()
315 SEGS_PER_SEC(sbi)); in select_policy()
785 last_segment = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in f2fs_get_victim()
937 (MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in f2fs_get_victim()
1778 unsigned int end_segno = start_segno + SEGS_PER_SEC(sbi); in do_garbage_collect()
1786 sec_end_segno = rounddown(end_segno, SEGS_PER_SEC(sbi)); in do_garbage_collect()
1795 sec_end_segno -= SEGS_PER_SEC(sbi) - in do_garbage_collect()
2163 for (segno = start_seg; segno <= end_seg; segno += SEGS_PER_SEC(sbi)) { in f2fs_gc_range()
2241 start = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in free_segment_range()
2293 int segs = secs * SEGS_PER_SEC(sbi); in update_sb_metadata()
[all …]
H A Dsegment.c2254 start = rounddown(start, SEGS_PER_SEC(sbi)); in f2fs_clear_prefree_segments()
2255 end = roundup(end, SEGS_PER_SEC(sbi)); in f2fs_clear_prefree_segments()
2285 start = start_segno + SEGS_PER_SEC(sbi); in f2fs_clear_prefree_segments()
2856 if (segno < MAIN_SEGS(sbi) && segno % SEGS_PER_SEC(sbi)) { in is_next_segment_free()
2893 if (!new_sec && ((*newseg + 1) % SEGS_PER_SEC(sbi))) { in get_new_segment()
3065 return get_random_u32_below(MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in __get_next_segno()
3477 sbi->pinned_area_max_secno * SEGS_PER_SEC(sbi) - 1, in f2fs_allocate_pinning_section()
3622 start_segno = rounddown(start_segno, SEGS_PER_SEC(sbi)); in f2fs_trim_fs()
3623 end_segno = roundup(end_segno + 1, SEGS_PER_SEC(sbi)) - 1; in f2fs_trim_fs()
5206 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) in build_sit_entries()
[all …]
H A Dsysfs.c653 if (t == 0 || t > SEGS_PER_SEC(sbi)) in __sbi_store()
658 if (t == 0 || t > SEGS_PER_SEC(sbi)) in __sbi_store()
935 if (t < 1 || t > SEGS_PER_SEC(sbi)) in __sbi_store()
1896 SEGS_PER_SEC(sbi)); in disk_map_seq_show()
H A Ddebug.c44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in f2fs_update_sit_info()
106 (j % SEGS_PER_SEC(sbi)) != 0) in update_multidevice_stats()
H A Dsuper.c4403 sbi->migration_granularity = SEGS_PER_SEC(sbi); in init_sb_info()
4405 DEF_MIGRATION_WINDOW_GRANULARITY_ZONED : SEGS_PER_SEC(sbi); in init_sb_info()
4935 SEGS_PER_SEC(sbi); in f2fs_scan_devices()
H A Df2fs.h2110 #define SEGS_PER_SEC(sbi) ((sbi)->segs_per_sec) macro
3822 #define __is_large_section(sbi) (SEGS_PER_SEC(sbi) > 1)
H A Dfile.c3428 range.dev_num, sbi->s_ndevs, SEGS_PER_SEC(sbi)); in f2fs_ioc_flush_device()