Searched refs:segs_per_sec (Results 1 – 6 of 6) sorted by relevance
/fs/f2fs/ |
D | segment.h | 39 sbi->segs_per_sec) || \ 41 sbi->segs_per_sec) || \ 43 sbi->segs_per_sec) || \ 45 sbi->segs_per_sec) || \ 47 sbi->segs_per_sec) || \ 49 sbi->segs_per_sec)) \ 68 ((segno) / sbi->segs_per_sec) 70 ((segno / sbi->segs_per_sec) / sbi->secs_per_zone) 313 unsigned int secno = segno / sbi->segs_per_sec; in __set_free() 314 unsigned int start_segno = secno * sbi->segs_per_sec; in __set_free() [all …]
|
D | gc.c | 138 p->ofs_unit = sbi->segs_per_sec; in select_policy() 174 return secno * sbi->segs_per_sec; in check_bg_victims() 183 unsigned int start = secno * sbi->segs_per_sec; in get_cb_cost() 190 for (i = 0; i < sbi->segs_per_sec; i++) in get_cb_cost() 192 vblocks = get_valid_blocks(sbi, segno, sbi->segs_per_sec); in get_cb_cost() 194 mtime = div_u64(mtime, sbi->segs_per_sec); in get_cb_cost() 195 vblocks = div_u64(vblocks, sbi->segs_per_sec); in get_cb_cost() 219 return get_valid_blocks(sbi, segno, sbi->segs_per_sec); in get_gc_cost() 691 for (i = 0; i < sbi->segs_per_sec; i++) in f2fs_gc() 697 WARN_ON(get_valid_blocks(sbi, segno, sbi->segs_per_sec)); in f2fs_gc()
|
D | segment.c | 86 if (get_valid_blocks(sbi, segno, sbi->segs_per_sec) == 0) in __remove_dirty_segment() 224 if (sbi->segs_per_sec > 1) in update_sit_entry() 336 ofs += sbi->segs_per_sec; in check_prefree_segments() 342 if (segno % sbi->segs_per_sec) in check_prefree_segments() 350 for (i = 1; i < sbi->segs_per_sec; i++) in check_prefree_segments() 355 for (i = 0; i < sbi->segs_per_sec; i++) in check_prefree_segments() 370 if (segno + 1 < TOTAL_SEGS(sbi) && (segno + 1) % sbi->segs_per_sec) in is_next_segment_free() 385 unsigned int hint = *newseg / sbi->segs_per_sec; in get_new_segment() 394 if (!new_sec && ((*newseg + 1) % sbi->segs_per_sec)) { in get_new_segment() 397 if (segno - *newseg < sbi->segs_per_sec - in get_new_segment() [all …]
|
D | debug.c | 71 si->cursec[i] = curseg->segno / sbi->segs_per_sec; in update_general_status() 94 blks_per_sec = sbi->segs_per_sec * (1 << sbi->log_blocks_per_seg); in update_sit_info() 97 for (segno = 0; segno < TOTAL_SEGS(sbi); segno += sbi->segs_per_sec) { in update_sit_info() 98 vblocks = get_valid_blocks(sbi, segno, sbi->segs_per_sec); in update_sit_info() 139 if (sbi->segs_per_sec > 1) in update_mem_info()
|
D | f2fs.h | 383 unsigned int segs_per_sec; /* segments per section */ member 616 unsigned int pages_per_sec = sbi->segs_per_sec * in get_blocktype_secs() 619 >> sbi->log_blocks_per_seg) / sbi->segs_per_sec; in get_blocktype_secs()
|
D | super.c | 490 sbi->segs_per_sec = le32_to_cpu(raw_super->segs_per_sec); in init_sb_info()
|