Home
last modified time | relevance | path

Searched refs:f2fs_sb_info (Results 1 – 25 of 28) sorted by relevance

12

/linux-5.19.10/fs/f2fs/
Df2fs.h1183 struct f2fs_sb_info *sbi; /* f2fs_sb_info pointer */
1216 struct f2fs_sb_info *sbi; /* f2fs superblock */
1591 struct f2fs_sb_info { struct
1845 static inline bool time_to_inject(struct f2fs_sb_info *sbi, int type) in time_to_inject() argument
1864 static inline bool time_to_inject(struct f2fs_sb_info *sbi, int type) in time_to_inject()
1876 static inline bool f2fs_is_multi_device(struct f2fs_sb_info *sbi) in f2fs_is_multi_device()
1881 static inline void f2fs_update_time(struct f2fs_sb_info *sbi, int type) in f2fs_update_time()
1894 static inline bool f2fs_time_over(struct f2fs_sb_info *sbi, int type) in f2fs_time_over()
1901 static inline unsigned int f2fs_time_to_wait(struct f2fs_sb_info *sbi, in f2fs_time_to_wait()
1918 static inline u32 __f2fs_crc32(struct f2fs_sb_info *sbi, u32 crc, in __f2fs_crc32()
[all …]
Diostat.h33 extern void f2fs_reset_iostat(struct f2fs_sb_info *sbi);
34 extern void f2fs_update_iostat(struct f2fs_sb_info *sbi,
38 struct f2fs_sb_info *sbi;
61 extern void iostat_alloc_and_bind_ctx(struct f2fs_sb_info *sbi,
65 extern int f2fs_init_iostat(struct f2fs_sb_info *sbi);
66 extern void f2fs_destroy_iostat(struct f2fs_sb_info *sbi);
68 static inline void f2fs_update_iostat(struct f2fs_sb_info *sbi, in f2fs_update_iostat()
71 static inline void iostat_alloc_and_bind_ctx(struct f2fs_sb_info *sbi, in iostat_alloc_and_bind_ctx()
81 static inline int f2fs_init_iostat(struct f2fs_sb_info *sbi) { return 0; } in f2fs_init_iostat()
82 static inline void f2fs_destroy_iostat(struct f2fs_sb_info *sbi) {} in f2fs_destroy_iostat()
Dsysfs.c56 ssize_t (*show)(struct f2fs_attr *, struct f2fs_sb_info *, char *);
57 ssize_t (*store)(struct f2fs_attr *, struct f2fs_sb_info *,
65 struct f2fs_sb_info *sbi, char *buf);
67 static unsigned char *__struct_ptr(struct f2fs_sb_info *sbi, int struct_type) in __struct_ptr()
96 struct f2fs_sb_info *sbi, char *buf) in dirty_segments_show()
103 struct f2fs_sb_info *sbi, char *buf) in free_segments_show()
110 struct f2fs_sb_info *sbi, char *buf) in ovp_segments_show()
117 struct f2fs_sb_info *sbi, char *buf) in lifetime_write_kbytes_show()
126 struct f2fs_sb_info *sbi, char *buf) in sb_status_show()
132 struct f2fs_sb_info *sbi, char *buf) in pending_discard_show()
[all …]
Dsegment.h29 static inline void sanity_check_seg_type(struct f2fs_sb_info *sbi, in sanity_check_seg_type()
223 void (*allocate_segment)(struct f2fs_sb_info *, int, bool);
305 int (*get_victim)(struct f2fs_sb_info *, unsigned int *,
334 static inline struct curseg_info *CURSEG_I(struct f2fs_sb_info *sbi, int type) in CURSEG_I()
339 static inline struct seg_entry *get_seg_entry(struct f2fs_sb_info *sbi, in get_seg_entry()
346 static inline struct sec_entry *get_sec_entry(struct f2fs_sb_info *sbi, in get_sec_entry()
353 static inline unsigned int get_valid_blocks(struct f2fs_sb_info *sbi, in get_valid_blocks()
366 static inline unsigned int get_ckpt_valid_blocks(struct f2fs_sb_info *sbi, in get_ckpt_valid_blocks()
408 static inline void seg_info_to_sit_page(struct f2fs_sb_info *sbi, in seg_info_to_sit_page()
446 static inline void __set_free(struct f2fs_sb_info *sbi, unsigned int segno) in __set_free()
[all …]
Dshrinker.c19 static unsigned long __count_nat_entries(struct f2fs_sb_info *sbi) in __count_nat_entries()
24 static unsigned long __count_free_nids(struct f2fs_sb_info *sbi) in __count_free_nids()
31 static unsigned long __count_extent_cache(struct f2fs_sb_info *sbi) in __count_extent_cache()
40 struct f2fs_sb_info *sbi; in f2fs_shrink_count()
47 sbi = list_entry(p, struct f2fs_sb_info, s_list); in f2fs_shrink_count()
77 struct f2fs_sb_info *sbi; in f2fs_shrink_scan()
88 sbi = list_entry(p, struct f2fs_sb_info, s_list); in f2fs_shrink_scan()
124 void f2fs_join_shrinker(struct f2fs_sb_info *sbi) in f2fs_join_shrinker()
131 void f2fs_leave_shrinker(struct f2fs_sb_info *sbi) in f2fs_leave_shrinker()
Dcheckpoint.c29 void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi, bool end_io) in f2fs_stop_checkpoint()
40 struct page *f2fs_grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) in f2fs_grab_meta_page()
56 static struct page *__get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index, in __get_meta_page()
109 struct page *f2fs_get_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) in f2fs_get_meta_page()
114 struct page *f2fs_get_meta_page_retry(struct f2fs_sb_info *sbi, pgoff_t index) in f2fs_get_meta_page_retry()
131 struct page *f2fs_get_tmp_page(struct f2fs_sb_info *sbi, pgoff_t index) in f2fs_get_tmp_page()
136 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid()
160 bool f2fs_is_valid_blkaddr(struct f2fs_sb_info *sbi, in f2fs_is_valid_blkaddr()
214 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages()
286 void f2fs_ra_meta_pages_cond(struct f2fs_sb_info *sbi, pgoff_t index, in f2fs_ra_meta_pages_cond()
[all …]
Dsegment.c171 bool f2fs_need_SSR(struct f2fs_sb_info *sbi) in f2fs_need_SSR()
190 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_abort_atomic_write()
210 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __replace_atomic_write_block()
274 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __f2fs_commit_atomic_write()
345 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_commit_atomic_write()
368 void f2fs_balance_fs(struct f2fs_sb_info *sbi, bool need) in f2fs_balance_fs()
410 static inline bool excess_dirty_threshold(struct f2fs_sb_info *sbi) in excess_dirty_threshold()
429 void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi, bool from_bg) in f2fs_balance_fs_bg()
481 static int __submit_flush_wait(struct f2fs_sb_info *sbi, in __submit_flush_wait()
491 static int submit_flush_wait(struct f2fs_sb_info *sbi, nid_t ino) in submit_flush_wait()
[all …]
Dgc.h87 static inline block_t free_segs_blk_count_zoned(struct f2fs_sb_info *sbi) in free_segs_blk_count_zoned()
102 static inline block_t free_segs_blk_count(struct f2fs_sb_info *sbi) in free_segs_blk_count()
110 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks()
123 static inline block_t limit_invalid_user_blocks(struct f2fs_sb_info *sbi) in limit_invalid_user_blocks()
128 static inline block_t limit_free_user_blocks(struct f2fs_sb_info *sbi) in limit_free_user_blocks()
164 static inline bool has_enough_invalid_blocks(struct f2fs_sb_info *sbi) in has_enough_invalid_blocks()
Diostat.c24 struct f2fs_sb_info *sbi = F2FS_SB(sb); in iostat_info_seq_show()
88 static inline void __record_iostat_latency(struct f2fs_sb_info *sbi) in __record_iostat_latency()
115 static inline void f2fs_record_iostat(struct f2fs_sb_info *sbi) in f2fs_record_iostat()
145 void f2fs_reset_iostat(struct f2fs_sb_info *sbi) in f2fs_reset_iostat()
162 void f2fs_update_iostat(struct f2fs_sb_info *sbi, in f2fs_update_iostat()
189 struct f2fs_sb_info *sbi = iostat_ctx->sbi; in __update_iostat_latency()
231 void iostat_alloc_and_bind_ctx(struct f2fs_sb_info *sbi, in iostat_alloc_and_bind_ctx()
270 int f2fs_init_iostat(struct f2fs_sb_info *sbi) in f2fs_init_iostat()
285 void f2fs_destroy_iostat(struct f2fs_sb_info *sbi) in f2fs_destroy_iostat()
Dnode.c33 int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_check_nid_range()
44 bool f2fs_available_free_memory(struct f2fs_sb_info *sbi, int type) in f2fs_available_free_memory()
128 static struct page *get_current_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_current_nat_page()
133 static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_next_nat_page()
162 static struct nat_entry *__alloc_nat_entry(struct f2fs_sb_info *sbi, in __alloc_nat_entry()
308 bool f2fs_in_warm_node_list(struct f2fs_sb_info *sbi, struct page *page) in f2fs_in_warm_node_list()
314 void f2fs_init_fsync_node_info(struct f2fs_sb_info *sbi) in f2fs_init_fsync_node_info()
322 static unsigned int f2fs_add_fsync_node_entry(struct f2fs_sb_info *sbi, in f2fs_add_fsync_node_entry()
346 void f2fs_del_fsync_node_entry(struct f2fs_sb_info *sbi, struct page *page) in f2fs_del_fsync_node_entry()
366 void f2fs_reset_fsync_node_info(struct f2fs_sb_info *sbi) in f2fs_reset_fsync_node_info()
[all …]
Dextent_cache.c61 struct rb_node **f2fs_lookup_rb_tree_ext(struct f2fs_sb_info *sbi, in f2fs_lookup_rb_tree_ext()
84 struct rb_node **f2fs_lookup_rb_tree_for_insert(struct f2fs_sb_info *sbi, in f2fs_lookup_rb_tree_for_insert()
191 bool f2fs_check_rb_tree_consistence(struct f2fs_sb_info *sbi, in f2fs_check_rb_tree_consistence()
235 static struct extent_node *__attach_extent_node(struct f2fs_sb_info *sbi, in __attach_extent_node()
257 static void __detach_extent_node(struct f2fs_sb_info *sbi, in __detach_extent_node()
275 static void __release_extent_node(struct f2fs_sb_info *sbi, in __release_extent_node()
288 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __grab_extent_tree()
318 static struct extent_node *__init_extent_tree(struct f2fs_sb_info *sbi, in __init_extent_tree()
333 static unsigned int __free_extent_tree(struct f2fs_sb_info *sbi, in __free_extent_tree()
364 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __f2fs_init_extent_tree()
[all …]
Dxattr.h134 extern int f2fs_init_xattr_caches(struct f2fs_sb_info *);
135 extern void f2fs_destroy_xattr_caches(struct f2fs_sb_info *);
152 static inline int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) { return 0; } in f2fs_init_xattr_caches()
153 static inline void f2fs_destroy_xattr_caches(struct f2fs_sb_info *sbi) { } in f2fs_destroy_xattr_caches()
Dgc.c33 struct f2fs_sb_info *sbi = data; in gc_thread_func()
171 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()
245 static void select_policy(struct f2fs_sb_info *sbi, int gc_type, in select_policy()
293 static unsigned int get_max_cost(struct f2fs_sb_info *sbi, in get_max_cost()
313 static unsigned int check_bg_victims(struct f2fs_sb_info *sbi) in check_bg_victims()
332 static unsigned int get_cb_cost(struct f2fs_sb_info *sbi, unsigned int segno) in get_cb_cost()
365 static inline unsigned int get_gc_cost(struct f2fs_sb_info *sbi, in get_gc_cost()
393 static struct victim_entry *attach_victim_entry(struct f2fs_sb_info *sbi, in attach_victim_entry()
[all …]
Dsuper.c65 void f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned int rate, in f2fs_build_fault_attr()
241 void f2fs_printk(struct f2fs_sb_info *sbi, const char *fmt, ...) in f2fs_printk()
299 static inline void limit_reserve_root(struct f2fs_sb_info *sbi) in limit_reserve_root()
323 static inline int adjust_reserved_segment(struct f2fs_sb_info *sbi) in adjust_reserved_segment()
363 static inline void adjust_unusable_cap_perc(struct f2fs_sb_info *sbi) in adjust_unusable_cap_perc()
392 struct f2fs_sb_info *sbi = F2FS_SB(sb); in f2fs_set_qf_name()
432 struct f2fs_sb_info *sbi = F2FS_SB(sb); in f2fs_clear_qf_name()
443 static int f2fs_check_quota_options(struct f2fs_sb_info *sbi) in f2fs_check_quota_options()
494 struct f2fs_sb_info *sbi = F2FS_SB(sb); in f2fs_set_test_dummy_encryption()
543 static int f2fs_test_compress_extension(struct f2fs_sb_info *sbi) in f2fs_test_compress_extension()
[all …]
Dxattr.c26 static void *xattr_alloc(struct f2fs_sb_info *sbi, int size, bool *is_inline) in xattr_alloc()
37 static void xattr_free(struct f2fs_sb_info *sbi, void *xattr_addr, in xattr_free()
50 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_get()
73 struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); in f2fs_xattr_generic_set()
92 struct f2fs_sb_info *sbi = F2FS_SB(dentry->d_sb); in f2fs_xattr_user_list()
276 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in read_inline_xattr()
298 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in read_xattr_block()
431 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in write_all_xattrs()
770 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_setxattr()
798 int f2fs_init_xattr_caches(struct f2fs_sb_info *sbi) in f2fs_init_xattr_caches()
[all …]
Dnode.h133 static inline bool excess_dirty_nats(struct f2fs_sb_info *sbi) in excess_dirty_nats()
139 static inline bool excess_cached_nats(struct f2fs_sb_info *sbi) in excess_cached_nats()
168 static inline void next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) in next_free_nid()
186 static inline void get_nat_bitmap(struct f2fs_sb_info *sbi, void *addr) in get_nat_bitmap()
198 static inline pgoff_t current_nat_addr(struct f2fs_sb_info *sbi, nid_t start) in current_nat_addr()
221 static inline pgoff_t next_nat_addr(struct f2fs_sb_info *sbi, in next_nat_addr()
Ddata.c57 struct f2fs_sb_info *sbi; in __is_cp_guaranteed()
84 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __read_io_type()
116 struct f2fs_sb_info *sbi;
272 struct f2fs_sb_info *sbi = F2FS_P_SB(bio_first_page_all(bio)); in f2fs_read_end_io()
298 struct f2fs_sb_info *sbi; in f2fs_write_end_io()
355 struct block_device *f2fs_target_device(struct f2fs_sb_info *sbi, in f2fs_target_device()
377 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index()
423 struct f2fs_sb_info *sbi = fio->sbi; in __bio_alloc()
475 static inline void __submit_bio(struct f2fs_sb_info *sbi, in __submit_bio()
528 void f2fs_submit_bio(struct f2fs_sb_info *sbi, in f2fs_submit_bio()
[all …]
Dinode.c77 static int __written_first_block(struct f2fs_sb_info *sbi, in __written_first_block()
126 static bool f2fs_enable_inode_chksum(struct f2fs_sb_info *sbi, struct page *page) in f2fs_enable_inode_chksum()
143 static __u32 f2fs_inode_chksum(struct f2fs_sb_info *sbi, struct page *page) in f2fs_inode_chksum()
166 bool f2fs_inode_chksum_verify(struct f2fs_sb_info *sbi, struct page *page) in f2fs_inode_chksum_verify()
193 void f2fs_inode_chksum_set(struct f2fs_sb_info *sbi, struct page *page) in f2fs_inode_chksum_set()
205 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in sanity_check_inode()
338 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in do_read_inode()
485 struct f2fs_sb_info *sbi = F2FS_SB(sb); in f2fs_iget()
691 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_inode_page()
712 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_write_inode()
[all …]
Dnamei.c28 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_new_inode()
193 static inline void set_file_temperature(struct f2fs_sb_info *sbi, struct inode *inode, in set_file_temperature()
220 int f2fs_update_extension_list(struct f2fs_sb_info *sbi, const char *name, in f2fs_update_extension_list()
286 static void set_compress_inode(struct f2fs_sb_info *sbi, struct inode *inode, in set_compress_inode()
341 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_create()
393 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_link()
453 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in __recover_dot_dentries()
598 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_unlink()
672 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_symlink()
752 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_mkdir()
[all …]
Dfile.c58 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_vm_page_mkwrite()
194 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in need_do_checkpoint()
224 static bool need_inode_page_update(struct f2fs_sb_info *sbi, nid_t ino) in need_inode_page_update()
253 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_do_sync_file()
558 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_truncate_data_blocks_range()
672 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_do_truncate_blocks()
1019 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in fill_zero()
1109 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in punch_hole()
1136 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __read_out_blkaddrs()
1191 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __roll_back_blkaddrs()
[all …]
Drecovery.c53 bool f2fs_space_for_roll_forward(struct f2fs_sb_info *sbi) in f2fs_space_for_roll_forward()
78 static struct fsync_inode_entry *add_fsync_inode(struct f2fs_sb_info *sbi, in add_fsync_inode()
350 static unsigned int adjust_por_ra_blocks(struct f2fs_sb_info *sbi, in adjust_por_ra_blocks()
363 static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head, in find_fsync_dnodes()
465 static int check_index_in_prev_nodes(struct f2fs_sb_info *sbi, in check_index_in_prev_nodes()
575 static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode, in do_recover_data()
721 static int recover_data(struct f2fs_sb_info *sbi, struct list_head *inode_list, in recover_data()
796 int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only) in f2fs_recover_fsync_data()
Dcompress.c28 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in page_array_alloc()
39 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in page_array_free()
734 struct f2fs_sb_info *sbi = F2FS_I_SB(dic->inode); in f2fs_decompress_cluster()
836 struct f2fs_sb_info *sbi = F2FS_I_SB(dic->inode); in f2fs_end_read_compressed_page()
913 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_sanity_check_cluster()
1057 struct f2fs_sb_info *sbi = F2FS_I_SB(cc->inode); in prepare_compress_overwrite()
1232 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_write_compressed_pages()
1427 struct f2fs_sb_info *sbi = bio->bi_private; in f2fs_compress_write_end_io()
1753 struct address_space *COMPRESS_MAPPING(struct f2fs_sb_info *sbi) in COMPRESS_MAPPING()
1758 void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_invalidate_compress_page()
[all …]
Dinline.c205 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_convert_inline_inode()
284 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_recover_inline_data()
345 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); in f2fs_find_in_inline_dir()
584 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_try_convert_inline_dir()
625 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_add_inline_entry()
717 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_empty_inline_dir()
Ddebug.c32 void f2fs_update_sit_info(struct f2fs_sb_info *sbi) in f2fs_update_sit_info()
63 static void update_general_status(struct f2fs_sb_info *sbi) in update_general_status()
217 static void update_mem_info(struct f2fs_sb_info *sbi) in update_mem_info()
229 si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize; in update_mem_info()
578 int f2fs_build_stats(struct f2fs_sb_info *sbi) in f2fs_build_stats()
623 void f2fs_destroy_stats(struct f2fs_sb_info *sbi) in f2fs_destroy_stats()
Dverity.c156 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_end_enable_verity()

12