Home
last modified time | relevance | path

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

/Linux-v5.10/fs/f2fs/
Ddebug.c54 dist = div_u64(MAIN_SECS(sbi) * hblks_per_sec * hblks_per_sec, 100); in f2fs_update_sit_info()
235 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
241 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
250 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
Dgc.c222 0, MAIN_SECS(sbi)); in select_policy()
277 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()
636 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in get_victim_by_default()
758 (MAIN_SECS(sbi) * sbi->segs_per_sec); in get_victim_by_default()
1815 MAIN_SECS(sbi) -= secs; in free_segment_range()
1816 start = MAIN_SECS(sbi) * sbi->segs_per_sec; in free_segment_range()
1866 MAIN_SECS(sbi) += secs; in free_segment_range()
1912 MAIN_SECS(sbi) += secs; in update_fs_metadata()
Dsegment.c2452 unsigned int total_zones = MAIN_SECS(sbi) / sbi->secs_per_zone; in get_new_segment()
2469 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2470 if (secno >= MAIN_SECS(sbi)) { in get_new_segment()
2473 MAIN_SECS(sbi), 0); in get_new_segment()
2474 f2fs_bug_on(sbi, secno >= MAIN_SECS(sbi)); in get_new_segment()
2489 MAIN_SECS(sbi), 0); in get_new_segment()
2490 f2fs_bug_on(sbi, left_start >= MAIN_SECS(sbi)); in get_new_segment()
4267 MAIN_SECS(sbi)), in build_sit_info()
4328 sec_bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in build_free_segmap()
4547 for (segno = 0; segno < MAIN_SECS(sbi); segno += blks_per_sec) { in init_dirty_segmap()
[all …]
Dsysfs.c895 for (i = 0; i < MAIN_SECS(sbi); i++) { in victim_bits_seq_show()
899 if ((i % 10) == 9 || i == (MAIN_SECS(sbi) - 1)) in victim_bits_seq_show()
Dsegment.h74 #define MAIN_SECS(sbi) ((sbi)->total_sections) macro