Home
last modified time | relevance | path

Searched refs:MAIN_SEGS (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/fs/f2fs/
Ddebug.c44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += sbi->segs_per_sec) { in f2fs_update_sit_info()
161 si->sits = MAIN_SEGS(sbi); in update_general_status()
193 for (i = 0; i < MAIN_SEGS(sbi); i++) { in update_general_status()
239 si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
240 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
241 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
242 si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
250 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
259 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
Dsegment.c825 for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { in f2fs_dirty_to_prefree()
848 for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { in f2fs_get_unusable_blocks()
884 for_each_set_bit(segno, dirty_i->dirty_segmap[DIRTY], MAIN_SEGS(sbi)) { in get_free_segment()
1904 for_each_set_bit(segno, dirty_i->dirty_segmap[PRE], MAIN_SEGS(sbi)) in set_prefree_as_free_segments()
1933 start = find_next_bit(prefree_map, MAIN_SEGS(sbi), end + 1); in f2fs_clear_prefree_segments()
1934 if (start >= MAIN_SEGS(sbi)) in f2fs_clear_prefree_segments()
1936 end = find_next_zero_bit(prefree_map, MAIN_SEGS(sbi), in f2fs_clear_prefree_segments()
2066 dcc->max_discards = MAIN_SEGS(sbi) << sbi->log_blocks_per_seg; in create_discard_cmd_control()
2412 if (segno < MAIN_SEGS(sbi) && segno % sbi->segs_per_sec) in is_next_segment_free()
3068 end_segno = (end >= MAX_BLKADDR(sbi)) ? MAIN_SEGS(sbi) - 1 : in f2fs_trim_fs()
[all …]
Dgc.h94 for (j = 0; j < MAIN_SEGS(sbi); j++) in free_segs_blk_count_zoned()
Dsegment.h74 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments) macro
129 DIV_ROUND_UP(MAIN_SEGS(sbi), SIT_ENTRY_PER_BLOCK)
418 (unsigned long)MAIN_SEGS(sbi)); in seg_info_to_sit_page()
Dgc.c1956 end = MAIN_SEGS(sbi) - 1; in free_segment_range()
2050 MAIN_SEGS(sbi) = (int)MAIN_SEGS(sbi) + segs; in update_fs_metadata()
Drecovery.c371 unsigned int free_blocks = MAIN_SEGS(sbi) * sbi->blocks_per_seg - in find_fsync_dnodes()