Lines Matching refs:gc_control
38 struct f2fs_gc_control gc_control = {
133 gc_control.init_gc_type = sync_mode ? FG_GC : BG_GC;
134 gc_control.no_bg_gc = foreground;
135 gc_control.nr_free_secs = foreground ? 1 : 0;
138 if (f2fs_gc(sbi, &gc_control)) {
1794 int f2fs_gc(struct f2fs_sb_info *sbi, struct f2fs_gc_control *gc_control)
1796 int gc_type = gc_control->init_gc_type;
1797 unsigned int segno = gc_control->victim_segno;
1808 trace_f2fs_gc_begin(sbi->sb, gc_type, gc_control->no_bg_gc,
1809 gc_control->nr_free_secs,
1850 if (gc_type == BG_GC && gc_control->no_bg_gc) {
1867 gc_control->should_migrate_blocks);
1879 if (!gc_control->no_bg_gc &&
1880 total_sec_freed < gc_control->nr_free_secs)
1918 SIT_I(sbi)->last_victim[FLUSH_DEVICE] = gc_control->victim_segno;
1936 if (gc_control->err_gc_skipped && !ret)