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)) {
1793 int f2fs_gc(struct f2fs_sb_info *sbi, struct f2fs_gc_control *gc_control)
1795 int gc_type = gc_control->init_gc_type;
1796 unsigned int segno = gc_control->victim_segno;
1807 trace_f2fs_gc_begin(sbi->sb, gc_type, gc_control->no_bg_gc,
1808 gc_control->nr_free_secs,
1849 if (gc_type == BG_GC && gc_control->no_bg_gc) {
1866 gc_control->should_migrate_blocks);
1881 if (!gc_control->no_bg_gc &&
1882 total_sec_freed < gc_control->nr_free_secs)
1920 SIT_I(sbi)->last_victim[FLUSH_DEVICE] = gc_control->victim_segno;
1938 if (gc_control->err_gc_skipped && !ret)