Home
last modified time | relevance | path

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

/openbmc/linux/fs/f2fs/
H A Dgc.c292 p->offset = SIT_I(sbi)->last_victim[p->gc_mode]; in select_policy()
752 unsigned int secno, last_victim; in f2fs_get_victim() local
810 last_victim = sm->last_victim[p.gc_mode]; in f2fs_get_victim()
827 if (sm->last_victim[p.gc_mode]) { in f2fs_get_victim()
829 sm->last_victim[p.gc_mode]; in f2fs_get_victim()
830 sm->last_victim[p.gc_mode] = 0; in f2fs_get_victim()
894 if (!sm->last_victim[p.gc_mode] && segno <= last_victim) in f2fs_get_victim()
895 sm->last_victim[p.gc_mode] = in f2fs_get_victim()
896 last_victim + p.ofs_unit; in f2fs_get_victim()
898 sm->last_victim[p.gc_mode] = segno + p.ofs_unit; in f2fs_get_victim()
[all …]
H A Dsegment.h254 unsigned int last_victim[MAX_GC_POLICY]; /* last victim segment # */ member
H A Dfile.c3104 start_segno = sm->last_victim[FLUSH_DEVICE]; in f2fs_ioc_flush_device()
3114 sm->last_victim[GC_CB] = end_segno + 1; in f2fs_ioc_flush_device()
3115 sm->last_victim[GC_GREEDY] = end_segno + 1; in f2fs_ioc_flush_device()
3116 sm->last_victim[ALLOC_NEXT] = end_segno + 1; in f2fs_ioc_flush_device()
H A Dsegment.c2781 if (SIT_I(sbi)->last_victim[ALLOC_NEXT]) in __get_next_segno()
2782 return SIT_I(sbi)->last_victim[ALLOC_NEXT]; in __get_next_segno()