Home
last modified time | relevance | path

Searched refs:MAIN_SECS (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/fs/f2fs/
Dgc.c265 0, MAIN_SECS(sbi)); in select_policy()
284 p->offset = prandom_u32_max(MAIN_SECS(sbi) * sbi->segs_per_sec); in select_policy()
322 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()
683 unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in f2fs_unpin_all_sections()
726 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in get_victim_by_default()
867 (MAIN_SECS(sbi) * sbi->segs_per_sec); in get_victim_by_default()
1954 MAIN_SECS(sbi) -= secs; in free_segment_range()
1955 start = MAIN_SECS(sbi) * sbi->segs_per_sec; in free_segment_range()
2005 MAIN_SECS(sbi) += secs; in free_segment_range()
2051 MAIN_SECS(sbi) += secs; in update_fs_metadata()
Ddebug.c54 dist = div_u64(MAIN_SECS(sbi) * hblks_per_sec * hblks_per_sec, 100); in f2fs_update_sit_info()
245 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
251 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
260 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
Dsegment.c2426 unsigned int total_zones = MAIN_SECS(sbi) / sbi->secs_per_zone; in get_new_segment()
2443 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2444 if (secno >= MAIN_SECS(sbi)) { in get_new_segment()
2447 MAIN_SECS(sbi)); in get_new_segment()
2448 f2fs_bug_on(sbi, secno >= MAIN_SECS(sbi)); in get_new_segment()
2463 MAIN_SECS(sbi)); in get_new_segment()
2464 f2fs_bug_on(sbi, left_start >= MAIN_SECS(sbi)); in get_new_segment()
2539 return prandom_u32_max(MAIN_SECS(sbi) * sbi->segs_per_sec); in __get_next_segno()
4232 MAIN_SECS(sbi)), in build_sit_info()
4293 sec_bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in build_free_segmap()
[all …]
Dsysfs.c1234 for (i = 0; i < MAIN_SECS(sbi); i++) { in victim_bits_seq_show()
1238 if ((i % 10) == 9 || i == (MAIN_SECS(sbi) - 1)) in victim_bits_seq_show()
Dsegment.h75 #define MAIN_SECS(sbi) ((sbi)->total_sections) macro