Searched refs:MAIN_SECS (Results 1 – 5 of 5) sorted by relevance
266 0, MAIN_SECS(sbi)); in select_policy()285 p->offset = prandom_u32() % (MAIN_SECS(sbi) * sbi->segs_per_sec); in select_policy()323 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()684 unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in f2fs_unpin_all_sections()727 last_segment = MAIN_SECS(sbi) * sbi->segs_per_sec; in get_victim_by_default()868 (MAIN_SECS(sbi) * sbi->segs_per_sec); in get_victim_by_default()1940 MAIN_SECS(sbi) -= secs; in free_segment_range()1941 start = MAIN_SECS(sbi) * sbi->segs_per_sec; in free_segment_range()1991 MAIN_SECS(sbi) += secs; in free_segment_range()2037 MAIN_SECS(sbi) += secs; in update_fs_metadata()
54 dist = div_u64(MAIN_SECS(sbi) * hblks_per_sec * hblks_per_sec, 100); in f2fs_update_sit_info()244 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()250 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()259 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
2418 unsigned int total_zones = MAIN_SECS(sbi) / sbi->secs_per_zone; in get_new_segment()2435 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()2436 if (secno >= MAIN_SECS(sbi)) { in get_new_segment()2439 MAIN_SECS(sbi)); in get_new_segment()2440 f2fs_bug_on(sbi, secno >= MAIN_SECS(sbi)); in get_new_segment()2455 MAIN_SECS(sbi)); in get_new_segment()2456 f2fs_bug_on(sbi, left_start >= MAIN_SECS(sbi)); in get_new_segment()2531 return prandom_u32() % (MAIN_SECS(sbi) * sbi->segs_per_sec); in __get_next_segno()4215 MAIN_SECS(sbi)), in build_sit_info()4276 sec_bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in build_free_segmap()[all …]
1171 for (i = 0; i < MAIN_SECS(sbi); i++) { in victim_bits_seq_show()1175 if ((i % 10) == 9 || i == (MAIN_SECS(sbi) - 1)) in victim_bits_seq_show()
75 #define MAIN_SECS(sbi) ((sbi)->total_sections) macro