Home
last modified time | relevance | path

Searched refs:TOTAL_SEGS (Results 1 – 4 of 4) sorted by relevance

/fs/f2fs/
Ddebug.c97 for (segno = 0; segno < TOTAL_SEGS(sbi); segno += sbi->segs_per_sec) { in update_sit_info()
136 si->base_mem += TOTAL_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
137 si->base_mem += f2fs_bitmap_size(TOTAL_SEGS(sbi)); in update_mem_info()
138 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * TOTAL_SEGS(sbi); in update_mem_info()
145 si->base_mem += f2fs_bitmap_size(TOTAL_SEGS(sbi)); in update_mem_info()
154 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(TOTAL_SEGS(sbi)); in update_mem_info()
Dsegment.c130 unsigned int total_segs = TOTAL_SEGS(sbi); in set_prefree_as_free_segments()
148 unsigned int total_segs = TOTAL_SEGS(sbi); in clear_prefree_segments()
335 segno = find_next_bit(prefree_segmap, TOTAL_SEGS(sbi), ofs); in check_prefree_segments()
338 if (segno < TOTAL_SEGS(sbi)) { in check_prefree_segments()
370 if (segno + 1 < TOTAL_SEGS(sbi) && (segno + 1) % sbi->segs_per_sec) in is_next_segment_free()
396 TOTAL_SEGS(sbi), *newseg + 1); in get_new_segment()
1345 unsigned long nsegs = TOTAL_SEGS(sbi); in flush_sit_entries()
1422 sit_i->sentries = vzalloc(TOTAL_SEGS(sbi) * sizeof(struct seg_entry)); in build_sit_info()
1426 bitmap_size = f2fs_bitmap_size(TOTAL_SEGS(sbi)); in build_sit_info()
1431 for (start = 0; start < TOTAL_SEGS(sbi); start++) { in build_sit_info()
[all …]
Dsegment.h86 #define TOTAL_SEGS(sbi) (SM_I(sbi)->main_segments) macro
321 next = find_next_bit(free_i->free_segmap, TOTAL_SEGS(sbi), start_segno); in __set_free()
352 next = find_next_bit(free_i->free_segmap, TOTAL_SEGS(sbi), in __set_test_and_free()
Dgc.c259 TOTAL_SEGS(sbi), p.offset); in get_victim_by_default()
260 if (segno >= TOTAL_SEGS(sbi)) { in get_victim_by_default()