Searched refs:SEGS_PER_SEC (Results 1 – 8 of 8) sorted by relevance
| /linux/fs/f2fs/ |
| H A D | segment.h | 76 (SEGS_PER_SEC(sbi) - \ 80 #define CAP_SEGS_PER_SEC(sbi) SEGS_PER_SEC(sbi) 83 (rounddown(segno, SEGS_PER_SEC(sbi))) 85 (((segno) == -1) ? -1 : (segno) / SEGS_PER_SEC(sbi)) 87 ((secno) * SEGS_PER_SEC(sbi)) 368 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in set_ckpt_valid_blocks() 385 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in sanity_check_valid_blocks() 479 start_segno + SEGS_PER_SEC(sbi), start_segno); in __set_free() 520 start_segno + SEGS_PER_SEC(sbi), start_segno); in __set_test_and_free()
|
| H A D | gc.c | 293 p->ofs_unit = SEGS_PER_SEC(sbi); in select_policy() 317 SEGS_PER_SEC(sbi)); in select_policy() 786 last_segment = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in f2fs_get_victim() 935 (MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in f2fs_get_victim() 1732 unsigned int end_segno = start_segno + SEGS_PER_SEC(sbi); in do_garbage_collect() 1741 sec_end_segno = rounddown(end_segno, SEGS_PER_SEC(sbi)); in do_garbage_collect() 1750 sec_end_segno -= SEGS_PER_SEC(sbi) - in do_garbage_collect() 2099 for (segno = start_seg; segno <= end_seg; segno += SEGS_PER_SEC(sbi)) { in f2fs_gc_range() 2142 start = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in free_segment_range() 2190 int segs = secs * SEGS_PER_SEC(sbi); in update_sb_metadata() [all …]
|
| H A D | segment.c | 2209 start = rounddown(start, SEGS_PER_SEC(sbi)); in f2fs_clear_prefree_segments() 2210 end = roundup(end, SEGS_PER_SEC(sbi)); in f2fs_clear_prefree_segments() 2240 start = start_segno + SEGS_PER_SEC(sbi); in f2fs_clear_prefree_segments() 2776 if (segno < MAIN_SEGS(sbi) && segno % SEGS_PER_SEC(sbi)) in is_next_segment_free() 2806 if (!new_sec && ((*newseg + 1) % SEGS_PER_SEC(sbi))) { in get_new_segment() 2964 return get_random_u32_below(MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in __get_next_segno() 3517 start_segno = rounddown(start_segno, SEGS_PER_SEC(sbi)); in f2fs_trim_fs() 3518 end_segno = roundup(end_segno + 1, SEGS_PER_SEC(sbi)) - 1; in f2fs_trim_fs() 5106 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in build_sit_entries() 5189 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in init_dirty_segmap() [all …]
|
| H A D | sysfs.c | 593 if (t == 0 || t > SEGS_PER_SEC(sbi)) in __sbi_store() 598 if (t == 0 || t > SEGS_PER_SEC(sbi)) in __sbi_store() 875 if (t < 1 || t > SEGS_PER_SEC(sbi)) in __sbi_store() 1784 SEGS_PER_SEC(sbi)); in disk_map_seq_show()
|
| H A D | debug.c | 44 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 D | super.c | 4298 sbi->migration_granularity = SEGS_PER_SEC(sbi); in init_sb_info() 4300 DEF_MIGRATION_WINDOW_GRANULARITY_ZONED : SEGS_PER_SEC(sbi); in init_sb_info() 4764 SEGS_PER_SEC(sbi); in f2fs_scan_devices()
|
| H A D | f2fs.h | 1967 #define SEGS_PER_SEC(sbi) ((sbi)->segs_per_sec) macro 3667 #define __is_large_section(sbi) (SEGS_PER_SEC(sbi) > 1)
|
| H A D | file.c | 3291 range.dev_num, sbi->s_ndevs, SEGS_PER_SEC(sbi)); in f2fs_ioc_flush_device()
|