/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | gc.c | 216 static int select_gc_type(struct f2fs_sb_info *sbi, int gc_type) in select_gc_type() argument 220 if (gc_type == BG_GC) { in select_gc_type() 245 static void select_policy(struct f2fs_sb_info *sbi, int gc_type, in select_policy() argument 261 p->gc_mode = select_gc_type(sbi, gc_type); in select_policy() 277 if (gc_type != FG_GC && in select_policy() 319 * If the gc_type is FG_GC, we can select victim segments in check_bg_victims() 724 static int f2fs_gc_pinned_control(struct inode *inode, int gc_type, in f2fs_gc_pinned_control() argument 729 if (gc_type != FG_GC) in f2fs_gc_pinned_control() 745 int gc_type, int type, char alloc_mode, in f2fs_get_victim() 765 select_policy(sbi, gc_type, typ in f2fs_get_victim() 744 f2fs_get_victim(struct f2fs_sb_info *sbi, unsigned int *result, int gc_type, int type, char alloc_mode, unsigned long long age) f2fs_get_victim() argument 997 gc_node_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, unsigned int segno, int gc_type) gc_node_segment() argument 1264 move_data_block(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) move_data_block() argument 1423 move_data_page(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) move_data_page() argument 1499 gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, struct gc_inode_list *gc_list, unsigned int segno, int gc_type, bool force_migrate) gc_data_segment() argument 1660 __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, int gc_type) __get_victim() argument 1672 do_garbage_collect(struct f2fs_sb_info *sbi, unsigned int start_segno, struct gc_inode_list *gc_list, int gc_type, bool force_migrate) do_garbage_collect() argument 1796 int gc_type = gc_control->init_gc_type; f2fs_gc() local 1988 int gc_mode, gc_type; free_segment_range() local [all...] |
H A D | f2fs.h | 3637 int f2fs_move_node_page(struct page *node_page, int gc_type); 3876 int gc_type, int type, char alloc_mode, 4050 #define stat_inc_gc_sec_count(sbi, type, gc_type) \ 4051 (F2FS_STAT(sbi)->gc_secs[(type)][(gc_type)]++) 4052 #define stat_inc_gc_seg_count(sbi, type, gc_type) \ 4053 (F2FS_STAT(sbi)->gc_segs[(type)][(gc_type)]++) 4058 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ 4063 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 4066 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ 4071 si->bg_node_blks += ((gc_type) [all...] |
H A D | node.c | 1708 int f2fs_move_node_page(struct page *node_page, int gc_type) in f2fs_move_node_page() argument 1712 if (gc_type == FG_GC) { in f2fs_move_node_page()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | gc.c | 191 static int select_gc_type(struct f2fs_sb_info *sbi, int gc_type) in select_gc_type() argument 195 if (gc_type == BG_GC) { in select_gc_type() 220 static void select_policy(struct f2fs_sb_info *sbi, int gc_type, in select_policy() argument 236 p->gc_mode = select_gc_type(sbi, gc_type); in select_policy() 252 if (gc_type != FG_GC && in select_policy() 292 * If the gc_type is FG_GC, we can select victim segments in check_bg_victims() 638 unsigned int *result, int gc_type, int type, in get_victim_by_default() 658 select_policy(sbi, gc_type, type, &p); in get_victim_by_default() 693 if (gc_type == FG_GC && in get_victim_by_default() 703 if (p.alloc_mode == LFS && gc_type in get_victim_by_default() 637 get_victim_by_default(struct f2fs_sb_info *sbi, unsigned int *result, int gc_type, int type, char alloc_mode, unsigned long long age) get_victim_by_default() argument 889 gc_node_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, unsigned int segno, int gc_type) gc_node_segment() argument 1153 move_data_block(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) move_data_block() argument 1324 move_data_page(struct inode *inode, block_t bidx, int gc_type, unsigned int segno, int off) move_data_page() argument 1410 gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, struct gc_inode_list *gc_list, unsigned int segno, int gc_type, bool force_migrate) gc_data_segment() argument 1565 __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, int gc_type) __get_victim() argument 1578 do_garbage_collect(struct f2fs_sb_info *sbi, unsigned int start_segno, struct gc_inode_list *gc_list, int gc_type, bool force_migrate) do_garbage_collect() argument 1700 int gc_type = sync ? FG_GC : BG_GC; f2fs_gc() local 1878 int gc_mode, gc_type; free_segment_range() local [all...] |
H A D | f2fs.h | 3319 int f2fs_move_node_page(struct page *node_page, int gc_type); 3710 #define stat_inc_seg_count(sbi, type, gc_type) \ 3716 si->bg_data_segs += (gc_type == BG_GC) ? 1 : 0; \ 3719 si->bg_node_segs += (gc_type == BG_GC) ? 1 : 0; \ 3726 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ 3731 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 3734 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ 3739 si->bg_node_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 3780 #define stat_inc_seg_count(sbi, type, gc_type) do { } while (0) 3782 #define stat_inc_data_blk_count(sbi, blks, gc_type) d [all...] |
H A D | node.c | 1626 int f2fs_move_node_page(struct page *node_page, int gc_type) in f2fs_move_node_page() argument 1630 if (gc_type == FG_GC) { in f2fs_move_node_page()
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | f2fs.h | 651 TP_PROTO(struct super_block *sb, int gc_type, bool no_bg_gc, 658 TP_ARGS(sb, gc_type, no_bg_gc, nr_free_secs, dirty_nodes, 664 __field(int, gc_type) 678 __entry->gc_type = gc_type; 690 TP_printk("dev = (%d,%d), gc_type = %s, no_background_GC = %d, nr_free_secs = %u, " 694 show_gc_type(__entry->gc_type), 695 (__entry->gc_type == BG_GC) ? __entry->no_bg_gc : -1, 763 TP_PROTO(struct super_block *sb, int type, int gc_type, 767 TP_ARGS(sb, type, gc_type, [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | f2fs.h | 751 TP_PROTO(struct super_block *sb, int type, int gc_type, 755 TP_ARGS(sb, type, gc_type, p, pre_victim, prefree, free), 760 __field(int, gc_type) 774 __entry->gc_type = gc_type; 790 show_gc_type(__entry->gc_type),
|
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A D | gamecon.c | 51 enum gc_type { enum 69 enum gc_type type;
|
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A D | gamecon.c | 48 enum gc_type { enum 66 enum gc_type type;
|