Home
last modified time | relevance | path

Searched refs:gc_type (Results 1 – 3 of 3) sorted by relevance

/fs/f2fs/
Dgc.c167 static int select_gc_type(struct f2fs_sb_info *sbi, int gc_type) in select_gc_type() argument
169 int gc_mode = (gc_type == BG_GC) ? GC_CB : GC_GREEDY; in select_gc_type()
183 static void select_policy(struct f2fs_sb_info *sbi, int gc_type, in select_policy() argument
194 p->gc_mode = select_gc_type(sbi, gc_type); in select_policy()
204 if (gc_type != FG_GC && in select_policy()
316 unsigned int *result, int gc_type, int type, char alloc_mode) in get_victim_by_default() argument
329 select_policy(sbi, gc_type, type, &p); in get_victim_by_default()
351 if (gc_type == FG_GC && in get_victim_by_default()
361 if (p.alloc_mode == LFS && gc_type == FG_GC) { in get_victim_by_default()
412 if (gc_type == BG_GC && test_bit(secno, dirty_i->victim_secmap)) in get_victim_by_default()
[all …]
Df2fs.h3322 int f2fs_move_node_page(struct page *node_page, int gc_type);
3691 #define stat_inc_seg_count(sbi, type, gc_type) \ argument
3697 si->bg_data_segs += (gc_type == BG_GC) ? 1 : 0; \
3700 si->bg_node_segs += (gc_type == BG_GC) ? 1 : 0; \
3707 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument
3712 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
3715 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument
3720 si->bg_node_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
3761 #define stat_inc_seg_count(sbi, type, gc_type) do { } while (0) argument
3763 #define stat_inc_data_blk_count(sbi, blks, gc_type) do { } while (0) argument
[all …]
Dnode.c1624 int f2fs_move_node_page(struct page *node_page, int gc_type) in f2fs_move_node_page() argument
1628 if (gc_type == FG_GC) { in f2fs_move_node_page()