Lines Matching defs:sbi
33 struct f2fs_sb_info *sbi = data; in gc_thread_func() local
172 int f2fs_start_gc_thread(struct f2fs_sb_info *sbi) in f2fs_start_gc_thread()
204 void f2fs_stop_gc_thread(struct f2fs_sb_info *sbi) in f2fs_stop_gc_thread()
216 static int select_gc_type(struct f2fs_sb_info *sbi, int gc_type) in select_gc_type()
247 static void select_policy(struct f2fs_sb_info *sbi, int gc_type, in select_policy()
295 static unsigned int get_max_cost(struct f2fs_sb_info *sbi, in get_max_cost()
315 static unsigned int check_bg_victims(struct f2fs_sb_info *sbi) in check_bg_victims()
334 static unsigned int get_cb_cost(struct f2fs_sb_info *sbi, unsigned int segno) in get_cb_cost()
367 static inline unsigned int get_gc_cost(struct f2fs_sb_info *sbi, in get_gc_cost()
395 static bool f2fs_check_victim_tree(struct f2fs_sb_info *sbi, in f2fs_check_victim_tree()
422 static struct victim_entry *__lookup_victim_entry(struct f2fs_sb_info *sbi, in __lookup_victim_entry()
440 static struct victim_entry *__create_victim_entry(struct f2fs_sb_info *sbi, in __create_victim_entry()
457 static void __insert_victim_entry(struct f2fs_sb_info *sbi, in __insert_victim_entry()
486 static void add_victim_entry(struct f2fs_sb_info *sbi, in add_victim_entry()
522 static void atgc_lookup_victim(struct f2fs_sb_info *sbi, in atgc_lookup_victim()
595 static void atssr_lookup_victim(struct f2fs_sb_info *sbi, in atssr_lookup_victim()
659 static void lookup_victim_by_age(struct f2fs_sb_info *sbi, in lookup_victim_by_age()
672 static void release_victim_entry(struct f2fs_sb_info *sbi) in release_victim_entry()
689 static bool f2fs_pin_section(struct f2fs_sb_info *sbi, unsigned int segno) in f2fs_pin_section()
714 static void f2fs_unpin_all_sections(struct f2fs_sb_info *sbi, bool enable) in f2fs_unpin_all_sections()
745 int f2fs_get_victim(struct f2fs_sb_info *sbi, unsigned int *result, in f2fs_get_victim()
979 static int check_valid_map(struct f2fs_sb_info *sbi, in check_valid_map()
998 static int gc_node_segment(struct f2fs_sb_info *sbi, in gc_node_segment()
1105 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive()
1175 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in ra_data_block() local
1495 static int gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in gc_data_segment()
1671 static int __get_victim(struct f2fs_sb_info *sbi, unsigned int *victim, in __get_victim()
1683 static int do_garbage_collect(struct f2fs_sb_info *sbi, in do_garbage_collect()
1805 int f2fs_gc(struct f2fs_sb_info *sbi, struct f2fs_gc_control *gc_control) in f2fs_gc()
1964 static void init_atgc_management(struct f2fs_sb_info *sbi) in init_atgc_management()
1982 void f2fs_build_gc_manager(struct f2fs_sb_info *sbi) in f2fs_build_gc_manager()
1994 int f2fs_gc_range(struct f2fs_sb_info *sbi, in f2fs_gc_range()
2024 static int free_segment_range(struct f2fs_sb_info *sbi, in free_segment_range()
2073 static void update_sb_metadata(struct f2fs_sb_info *sbi, int secs) in update_sb_metadata()
2106 static void update_fs_metadata(struct f2fs_sb_info *sbi, int secs) in update_fs_metadata()
2136 struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp)); in f2fs_resize_fs() local