Searched refs:MAIN_SECS (Results 1 – 5 of 5) sorted by relevance
268 0, MAIN_SECS(sbi)); in select_policy()287 p->offset = get_random_u32_below(MAIN_SECS(sbi) * in select_policy()325 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()716 unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in f2fs_unpin_all_sections()759 last_segment = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in f2fs_get_victim()900 (MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in f2fs_get_victim()2034 MAIN_SECS(sbi) -= secs; in free_segment_range()2035 start = MAIN_SECS(sbi) * SEGS_PER_SEC(sbi); in free_segment_range()2069 MAIN_SECS(sbi) += secs; in free_segment_range()2115 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()259 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()265 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()274 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
2663 unsigned int total_zones = MAIN_SECS(sbi) / sbi->secs_per_zone; in get_new_segment()2689 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()2690 if (secno >= MAIN_SECS(sbi)) { in get_new_segment()2692 MAIN_SECS(sbi)); in get_new_segment()2693 if (secno >= MAIN_SECS(sbi)) { in get_new_segment()2766 return get_random_u32_below(MAIN_SECS(sbi) * SEGS_PER_SEC(sbi)); in __get_next_segno()4470 MAIN_SECS(sbi)), in build_sit_info()4528 sec_bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in build_free_segmap()4796 unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in init_victim_secmap()4835 bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi)); in build_dirty_segmap()
1401 for (i = 0; i < MAIN_SECS(sbi); i++) { in victim_bits_seq_show()1405 if ((i % 10) == 9 || i == (MAIN_SECS(sbi) - 1)) in victim_bits_seq_show()
75 #define MAIN_SECS(sbi) ((sbi)->total_sections) macro