Lines Matching refs:f2fs_sb_info

171 bool f2fs_need_SSR(struct f2fs_sb_info *sbi)  in f2fs_need_SSR()
215 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __replace_atomic_write_block()
298 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __f2fs_commit_atomic_write()
378 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_commit_atomic_write()
401 void f2fs_balance_fs(struct f2fs_sb_info *sbi, bool need) in f2fs_balance_fs()
443 static inline bool excess_dirty_threshold(struct f2fs_sb_info *sbi) in excess_dirty_threshold()
462 void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi, bool from_bg) in f2fs_balance_fs_bg()
520 static int __submit_flush_wait(struct f2fs_sb_info *sbi, in __submit_flush_wait()
532 static int submit_flush_wait(struct f2fs_sb_info *sbi, nid_t ino) in submit_flush_wait()
552 struct f2fs_sb_info *sbi = data; in issue_flush_thread()
584 int f2fs_issue_flush(struct f2fs_sb_info *sbi, nid_t ino) in f2fs_issue_flush()
655 int f2fs_create_flush_cmd_control(struct f2fs_sb_info *sbi) in f2fs_create_flush_cmd_control()
691 void f2fs_destroy_flush_cmd_control(struct f2fs_sb_info *sbi, bool free) in f2fs_destroy_flush_cmd_control()
707 int f2fs_flush_device_cache(struct f2fs_sb_info *sbi) in f2fs_flush_device_cache()
743 static void __locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, in __locate_dirty_segment()
780 static void __remove_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno, in __remove_dirty_segment()
824 static void locate_dirty_segment(struct f2fs_sb_info *sbi, unsigned int segno) in locate_dirty_segment()
854 void f2fs_dirty_to_prefree(struct f2fs_sb_info *sbi) in f2fs_dirty_to_prefree()
871 block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi) in f2fs_get_unusable_blocks()
900 int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable) in f2fs_disable_cp_again()
913 static unsigned int get_free_segment(struct f2fs_sb_info *sbi) in get_free_segment()
931 static struct discard_cmd *__create_discard_cmd(struct f2fs_sb_info *sbi, in __create_discard_cmd()
963 static bool f2fs_check_discard_tree(struct f2fs_sb_info *sbi) in f2fs_check_discard_tree()
991 static struct discard_cmd *__lookup_discard_cmd(struct f2fs_sb_info *sbi, in __lookup_discard_cmd()
1083 static void __remove_discard_cmd(struct f2fs_sb_info *sbi, in __remove_discard_cmd()
1128 static void __check_sit_bitmap(struct f2fs_sb_info *sbi, in __check_sit_bitmap()
1155 static void __init_discard_policy(struct f2fs_sb_info *sbi, in __init_discard_policy()
1199 static void __update_discard_tree_range(struct f2fs_sb_info *sbi,
1204 static void __submit_zone_reset_cmd(struct f2fs_sb_info *sbi, in __submit_zone_reset_cmd()
1242 static int __submit_discard_cmd(struct f2fs_sb_info *sbi, in __submit_discard_cmd()
1362 static void __insert_discard_cmd(struct f2fs_sb_info *sbi, in __insert_discard_cmd()
1399 static void __punch_discard_cmd(struct f2fs_sb_info *sbi, in __punch_discard_cmd()
1435 static void __update_discard_tree_range(struct f2fs_sb_info *sbi, in __update_discard_tree_range()
1522 static void __queue_zone_reset_cmd(struct f2fs_sb_info *sbi, in __queue_zone_reset_cmd()
1534 static void __queue_discard_cmd(struct f2fs_sb_info *sbi, in __queue_discard_cmd()
1554 static void __issue_discard_cmd_orderly(struct f2fs_sb_info *sbi, in __issue_discard_cmd_orderly()
1606 static unsigned int __wait_all_discard_cmd(struct f2fs_sb_info *sbi,
1609 static int __issue_discard_cmd(struct f2fs_sb_info *sbi, in __issue_discard_cmd()
1682 static bool __drop_discard_cmd(struct f2fs_sb_info *sbi) in __drop_discard_cmd()
1704 void f2fs_drop_discard_cmd(struct f2fs_sb_info *sbi) in f2fs_drop_discard_cmd()
1709 static unsigned int __wait_one_discard_bio(struct f2fs_sb_info *sbi, in __wait_one_discard_bio()
1729 static unsigned int __wait_discard_cmd_range(struct f2fs_sb_info *sbi, in __wait_discard_cmd_range()
1770 static unsigned int __wait_all_discard_cmd(struct f2fs_sb_info *sbi, in __wait_all_discard_cmd()
1789 static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_wait_discard_bio()
1833 void f2fs_stop_discard_thread(struct f2fs_sb_info *sbi) in f2fs_stop_discard_thread()
1853 bool f2fs_issue_discard_timeout(struct f2fs_sb_info *sbi) in f2fs_issue_discard_timeout()
1876 struct f2fs_sb_info *sbi = data; in issue_discard_thread()
1941 static int __f2fs_issue_discard_zone(struct f2fs_sb_info *sbi, in __f2fs_issue_discard_zone()
1988 static int __issue_discard_async(struct f2fs_sb_info *sbi, in __issue_discard_async()
1999 static int f2fs_issue_discard(struct f2fs_sb_info *sbi, in f2fs_issue_discard()
2040 static bool add_discard_addrs(struct f2fs_sb_info *sbi, struct cp_control *cpc, in add_discard_addrs()
2107 void f2fs_release_discard_addrs(struct f2fs_sb_info *sbi) in f2fs_release_discard_addrs()
2120 static void set_prefree_as_free_segments(struct f2fs_sb_info *sbi) in set_prefree_as_free_segments()
2131 void f2fs_clear_prefree_segments(struct f2fs_sb_info *sbi, in f2fs_clear_prefree_segments()
2241 int f2fs_start_discard_thread(struct f2fs_sb_info *sbi) in f2fs_start_discard_thread()
2260 static int create_discard_cmd_control(struct f2fs_sb_info *sbi) in create_discard_cmd_control()
2315 static void destroy_discard_cmd_control(struct f2fs_sb_info *sbi) in destroy_discard_cmd_control()
2334 static bool __mark_sit_entry_dirty(struct f2fs_sb_info *sbi, unsigned int segno) in __mark_sit_entry_dirty()
2346 static void __set_sit_entry_type(struct f2fs_sb_info *sbi, int type, in __set_sit_entry_type()
2356 static inline unsigned long long get_segment_mtime(struct f2fs_sb_info *sbi, in get_segment_mtime()
2366 static void update_segment_mtime(struct f2fs_sb_info *sbi, block_t blkaddr, in update_segment_mtime()
2389 static void update_sit_entry(struct f2fs_sb_info *sbi, block_t blkaddr, int del) in update_sit_entry()
2489 void f2fs_invalidate_blocks(struct f2fs_sb_info *sbi, block_t addr) in f2fs_invalidate_blocks()
2513 bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_is_checkpointed_data()
2537 static unsigned short f2fs_curseg_valid_blocks(struct f2fs_sb_info *sbi, int type) in f2fs_curseg_valid_blocks()
2549 int f2fs_npages_for_summary_flush(struct f2fs_sb_info *sbi, bool for_ra) in f2fs_npages_for_summary_flush()
2575 struct page *f2fs_get_sum_page(struct f2fs_sb_info *sbi, unsigned int segno) in f2fs_get_sum_page()
2582 void f2fs_update_meta_page(struct f2fs_sb_info *sbi, in f2fs_update_meta_page()
2592 static void write_sum_page(struct f2fs_sb_info *sbi, in write_sum_page()
2598 static void write_current_sum_page(struct f2fs_sb_info *sbi, in write_current_sum_page()
2624 static int is_next_segment_free(struct f2fs_sb_info *sbi, in is_next_segment_free()
2639 static void get_new_segment(struct f2fs_sb_info *sbi, in get_new_segment()
2726 static void reset_curseg(struct f2fs_sb_info *sbi, int type, int modified) in reset_curseg()
2750 static unsigned int __get_next_segno(struct f2fs_sb_info *sbi, int type) in __get_next_segno()
2788 static void new_curseg(struct f2fs_sb_info *sbi, int type, bool new_sec) in new_curseg()
2814 static int __next_free_blkoff(struct f2fs_sb_info *sbi, in __next_free_blkoff()
2830 static int f2fs_find_next_ssr_block(struct f2fs_sb_info *sbi, in f2fs_find_next_ssr_block()
2836 bool f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno) in f2fs_segment_has_free_slot()
2845 static void change_curseg(struct f2fs_sb_info *sbi, int type) in change_curseg()
2877 static int get_ssr_segment(struct f2fs_sb_info *sbi, int type,
2880 static void get_atssr_segment(struct f2fs_sb_info *sbi, int type, in get_atssr_segment()
2901 static void __f2fs_init_atgc_curseg(struct f2fs_sb_info *sbi) in __f2fs_init_atgc_curseg()
2921 void f2fs_init_inmem_curseg(struct f2fs_sb_info *sbi) in f2fs_init_inmem_curseg()
2926 static void __f2fs_save_inmem_curseg(struct f2fs_sb_info *sbi, int type) in __f2fs_save_inmem_curseg()
2946 void f2fs_save_inmem_curseg(struct f2fs_sb_info *sbi) in f2fs_save_inmem_curseg()
2954 static void __f2fs_restore_inmem_curseg(struct f2fs_sb_info *sbi, int type) in __f2fs_restore_inmem_curseg()
2971 void f2fs_restore_inmem_curseg(struct f2fs_sb_info *sbi) in f2fs_restore_inmem_curseg()
2979 static int get_ssr_segment(struct f2fs_sb_info *sbi, int type, in get_ssr_segment()
3035 static bool need_new_seg(struct f2fs_sb_info *sbi, int type) in need_new_seg()
3051 void f2fs_allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type, in f2fs_allocate_segment_for_resize()
3084 static void __allocate_new_segment(struct f2fs_sb_info *sbi, int type, in __allocate_new_segment()
3102 void f2fs_allocate_new_section(struct f2fs_sb_info *sbi, int type, bool force) in f2fs_allocate_new_section()
3111 void f2fs_allocate_new_segments(struct f2fs_sb_info *sbi) in f2fs_allocate_new_segments()
3123 bool f2fs_exist_trim_candidates(struct f2fs_sb_info *sbi, in f2fs_exist_trim_candidates()
3142 static unsigned int __issue_discard_cmd_range(struct f2fs_sb_info *sbi, in __issue_discard_cmd_range()
3210 int f2fs_trim_fs(struct f2fs_sb_info *sbi, struct fstrim_range *range) in f2fs_trim_fs()
3320 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __get_age_segment_type()
3399 static void f2fs_randomize_chunk(struct f2fs_sb_info *sbi, in f2fs_randomize_chunk()
3412 void f2fs_allocate_data_block(struct f2fs_sb_info *sbi, struct page *page, in f2fs_allocate_data_block()
3523 void f2fs_update_device_state(struct f2fs_sb_info *sbi, nid_t ino, in f2fs_update_device_state()
3579 void f2fs_do_write_meta_page(struct f2fs_sb_info *sbi, struct page *page, in f2fs_do_write_meta_page()
3618 struct f2fs_sb_info *sbi = fio->sbi; in f2fs_outplace_write_data()
3634 struct f2fs_sb_info *sbi = fio->sbi; in f2fs_inplace_write_data()
3686 static inline int __f2fs_get_curseg(struct f2fs_sb_info *sbi, in __f2fs_get_curseg()
3698 void f2fs_do_replace_block(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in f2fs_do_replace_block()
3787 void f2fs_replace_block(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, in f2fs_replace_block()
3806 struct f2fs_sb_info *sbi = F2FS_P_SB(page); in f2fs_wait_on_page_writeback()
3823 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_wait_on_block_writeback()
3842 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_wait_on_block_writeback_range()
3854 static int read_compacted_summaries(struct f2fs_sb_info *sbi) in read_compacted_summaries()
3919 static int read_normal_summaries(struct f2fs_sb_info *sbi, int type) in read_normal_summaries()
3993 static int restore_curseg_summaries(struct f2fs_sb_info *sbi) in restore_curseg_summaries()
4036 static void write_compacted_summaries(struct f2fs_sb_info *sbi, block_t blkaddr) in write_compacted_summaries()
4088 static void write_normal_summaries(struct f2fs_sb_info *sbi, in write_normal_summaries()
4102 void f2fs_write_data_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_data_summaries()
4110 void f2fs_write_node_summaries(struct f2fs_sb_info *sbi, block_t start_blk) in f2fs_write_node_summaries()
4137 static struct page *get_current_sit_page(struct f2fs_sb_info *sbi, in get_current_sit_page()
4143 static struct page *get_next_sit_page(struct f2fs_sb_info *sbi, in get_next_sit_page()
4216 static void add_sits_in_set(struct f2fs_sb_info *sbi) in add_sits_in_set()
4227 static void remove_sits_in_journal(struct f2fs_sb_info *sbi) in remove_sits_in_journal()
4252 void f2fs_flush_sit_entries(struct f2fs_sb_info *sbi, struct cp_control *cpc) in f2fs_flush_sit_entries()
4372 static int build_sit_info(struct f2fs_sb_info *sbi) in build_sit_info()
4478 static int build_free_segmap(struct f2fs_sb_info *sbi) in build_free_segmap()
4512 static int build_curseg(struct f2fs_sb_info *sbi) in build_curseg()
4547 static int build_sit_entries(struct f2fs_sb_info *sbi) in build_sit_entries()
4693 static void init_free_segmap(struct f2fs_sb_info *sbi) in init_free_segmap()
4718 static void init_dirty_segmap(struct f2fs_sb_info *sbi) in init_dirty_segmap()
4761 static int init_victim_secmap(struct f2fs_sb_info *sbi) in init_victim_secmap()
4779 static int build_dirty_segmap(struct f2fs_sb_info *sbi) in build_dirty_segmap()
4814 static int sanity_check_curseg(struct f2fs_sb_info *sbi) in sanity_check_curseg()
4864 static int check_zone_write_pointer(struct f2fs_sb_info *sbi, in check_zone_write_pointer()
4968 static struct f2fs_dev_info *get_target_zoned_dev(struct f2fs_sb_info *sbi, in get_target_zoned_dev()
4991 static int fix_curseg_write_pointer(struct f2fs_sb_info *sbi, int type) in fix_curseg_write_pointer()
5083 int f2fs_fix_curseg_write_pointer(struct f2fs_sb_info *sbi) in f2fs_fix_curseg_write_pointer()
5097 struct f2fs_sb_info *sbi;
5111 int f2fs_check_write_pointer(struct f2fs_sb_info *sbi) in f2fs_check_write_pointer()
5140 struct f2fs_sb_info *sbi, unsigned int segno) in f2fs_usable_zone_blks_in_seg()
5167 int f2fs_fix_curseg_write_pointer(struct f2fs_sb_info *sbi) in f2fs_fix_curseg_write_pointer()
5172 int f2fs_check_write_pointer(struct f2fs_sb_info *sbi) in f2fs_check_write_pointer()
5177 static inline unsigned int f2fs_usable_zone_blks_in_seg(struct f2fs_sb_info *sbi, in f2fs_usable_zone_blks_in_seg()
5184 unsigned int f2fs_usable_blks_in_seg(struct f2fs_sb_info *sbi, in f2fs_usable_blks_in_seg()
5193 unsigned int f2fs_usable_segs_in_sec(struct f2fs_sb_info *sbi, in f2fs_usable_segs_in_sec()
5205 static void init_min_max_mtime(struct f2fs_sb_info *sbi) in init_min_max_mtime()
5231 int f2fs_build_segment_manager(struct f2fs_sb_info *sbi) in f2fs_build_segment_manager()
5304 static void discard_dirty_segmap(struct f2fs_sb_info *sbi, in discard_dirty_segmap()
5315 static void destroy_victim_secmap(struct f2fs_sb_info *sbi) in destroy_victim_secmap()
5323 static void destroy_dirty_segmap(struct f2fs_sb_info *sbi) in destroy_dirty_segmap()
5346 static void destroy_curseg(struct f2fs_sb_info *sbi) in destroy_curseg()
5361 static void destroy_free_segmap(struct f2fs_sb_info *sbi) in destroy_free_segmap()
5373 static void destroy_sit_info(struct f2fs_sb_info *sbi) in destroy_sit_info()
5397 void f2fs_destroy_segment_manager(struct f2fs_sb_info *sbi) in f2fs_destroy_segment_manager()