Lines Matching refs:last_victim
289 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy()
719 unsigned int secno, last_victim; in get_victim_by_default() local
777 last_victim = sm->last_victim[p.gc_mode]; in get_victim_by_default()
794 if (sm->last_victim[p.gc_mode]) { in get_victim_by_default()
796 sm->last_victim[p.gc_mode]; in get_victim_by_default()
797 sm->last_victim[p.gc_mode] = 0; in get_victim_by_default()
861 if (!sm->last_victim[p.gc_mode] && segno <= last_victim) in get_victim_by_default()
862 sm->last_victim[p.gc_mode] = in get_victim_by_default()
863 last_victim + p.ofs_unit; in get_victim_by_default()
865 sm->last_victim[p.gc_mode] = segno + p.ofs_unit; in get_victim_by_default()
866 sm->last_victim[p.gc_mode] %= in get_victim_by_default()
1874 SIT_I(sbi)->last_victim[ALLOC_NEXT] = 0; in f2fs_gc()
1875 SIT_I(sbi)->last_victim[FLUSH_DEVICE] = gc_control->victim_segno; in f2fs_gc()
1938 SIT_I(sbi)->last_victim[ALLOC_NEXT] = in f2fs_build_gc_manager()
1960 if (SIT_I(sbi)->last_victim[gc_mode] >= start) in free_segment_range()
1961 SIT_I(sbi)->last_victim[gc_mode] = 0; in free_segment_range()