Lines Matching refs:f2fs_sb_info
90 struct f2fs_sb_info sbi;
159 static inline bool need_fsync_data_record(struct f2fs_sb_info *sbi) in need_fsync_data_record()
165 extern int fsck_chk_orphan_node(struct f2fs_sb_info *);
166 extern int fsck_chk_quota_node(struct f2fs_sb_info *);
167 extern int fsck_chk_quota_files(struct f2fs_sb_info *);
168 extern int fsck_sanity_check_nid(struct f2fs_sb_info *, u32,
171 extern int fsck_chk_node_blk(struct f2fs_sb_info *, struct f2fs_inode *, u32,
174 extern void fsck_chk_inode_blk(struct f2fs_sb_info *, u32, enum FILE_TYPE,
177 extern int fsck_chk_dnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
181 extern int fsck_chk_idnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
184 extern int fsck_chk_didnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
187 extern int fsck_chk_data_blk(struct f2fs_sb_info *, int,
189 extern int fsck_chk_dentry_blk(struct f2fs_sb_info *, int,
191 int fsck_chk_inline_dentries(struct f2fs_sb_info *, struct f2fs_node *,
193 void fsck_chk_checkpoint(struct f2fs_sb_info *sbi);
194 int fsck_chk_meta(struct f2fs_sb_info *sbi);
195 void fsck_chk_and_fix_write_pointers(struct f2fs_sb_info *);
196 int fsck_chk_curseg_info(struct f2fs_sb_info *);
200 extern void update_free_segments(struct f2fs_sb_info *);
202 extern void print_node_info(struct f2fs_sb_info *, struct f2fs_node *, int);
203 extern void print_inode_info(struct f2fs_sb_info *, struct f2fs_node *, int);
204 extern struct seg_entry *get_seg_entry(struct f2fs_sb_info *, unsigned int);
205 extern struct f2fs_summary_block *get_sum_block(struct f2fs_sb_info *,
207 extern int get_sum_entry(struct f2fs_sb_info *, u32, struct f2fs_summary *);
208 extern void update_sum_entry(struct f2fs_sb_info *, block_t,
210 extern void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *);
211 extern void nullify_nat_entry(struct f2fs_sb_info *, u32);
212 extern void rewrite_sit_area_bitmap(struct f2fs_sb_info *);
213 extern void build_nat_area_bitmap(struct f2fs_sb_info *);
214 extern void build_sit_area_bitmap(struct f2fs_sb_info *);
215 extern int f2fs_set_main_bitmap(struct f2fs_sb_info *, u32, int);
216 extern int f2fs_set_sit_bitmap(struct f2fs_sb_info *, u32);
217 extern void fsck_init(struct f2fs_sb_info *);
218 extern int fsck_verify(struct f2fs_sb_info *);
219 extern void fsck_free(struct f2fs_sb_info *);
220 extern int f2fs_ra_meta_pages(struct f2fs_sb_info *, block_t, int, int);
221 extern int f2fs_do_mount(struct f2fs_sb_info *);
222 extern void f2fs_do_umount(struct f2fs_sb_info *);
223 extern int f2fs_sparse_initialize_meta(struct f2fs_sb_info *);
225 extern void flush_journal_entries(struct f2fs_sb_info *);
226 extern void update_curseg_info(struct f2fs_sb_info *, int);
227 extern void zero_journal_entries(struct f2fs_sb_info *);
228 extern void flush_sit_entries(struct f2fs_sb_info *);
229 extern void move_curseg_info(struct f2fs_sb_info *, u64, int);
230 extern void write_curseg_info(struct f2fs_sb_info *);
231 extern int find_next_free_block(struct f2fs_sb_info *, u64 *, int, int, bool);
232 extern void duplicate_checkpoint(struct f2fs_sb_info *);
233 extern void write_checkpoint(struct f2fs_sb_info *);
234 extern void write_checkpoints(struct f2fs_sb_info *);
236 extern void update_data_blkaddr(struct f2fs_sb_info *, nid_t, u16, block_t);
237 extern void update_nat_blkaddr(struct f2fs_sb_info *, nid_t, nid_t, block_t);
242 extern pgoff_t current_nat_addr(struct f2fs_sb_info *, nid_t, int *);
244 extern u32 get_free_segments(struct f2fs_sb_info *);
245 extern void get_current_sit_page(struct f2fs_sb_info *,
247 extern void rewrite_current_sit_page(struct f2fs_sb_info *, unsigned int,
252 extern void write_nat_bits(struct f2fs_sb_info *, struct f2fs_super_block *,
254 extern unsigned int get_usable_seg_count(struct f2fs_sb_info *);
255 extern bool is_usable_seg(struct f2fs_sb_info *, unsigned int);
270 extern void nat_dump(struct f2fs_sb_info *, nid_t, nid_t);
271 extern void sit_dump(struct f2fs_sb_info *, unsigned int, unsigned int);
272 extern void ssa_dump(struct f2fs_sb_info *, int, int);
273 extern int dump_node(struct f2fs_sb_info *, nid_t, int);
274 extern int dump_info_from_blkaddr(struct f2fs_sb_info *, u32);
276 extern void dump_node_scan_disk(struct f2fs_sb_info *sbi, nid_t nid);
280 int f2fs_defragment(struct f2fs_sb_info *, u64, u64, u64, int);
283 int f2fs_resize(struct f2fs_sb_info *);
286 int f2fs_sload(struct f2fs_sb_info *);
289 int reserve_new_block(struct f2fs_sb_info *, block_t *,
291 int new_data_block(struct f2fs_sb_info *, void *,
293 int f2fs_build_file(struct f2fs_sb_info *, struct dentry *);
294 void f2fs_alloc_nid(struct f2fs_sb_info *, nid_t *);
296 block_t new_node_block(struct f2fs_sb_info *,
298 int f2fs_rebuild_qf_inode(struct f2fs_sb_info *sbi, int qtype);
303 u64 f2fs_read(struct f2fs_sb_info *, nid_t, u8 *, u64, pgoff_t);
311 u64 f2fs_write(struct f2fs_sb_info *, nid_t, u8 *, u64, pgoff_t);
312 u64 f2fs_write_compress_data(struct f2fs_sb_info *, nid_t, u8 *, u64, pgoff_t);
313 u64 f2fs_write_addrtag(struct f2fs_sb_info *, nid_t, pgoff_t, unsigned int);
314 void f2fs_filesize_update(struct f2fs_sb_info *, nid_t, u64);
316 int get_dnode_of_data(struct f2fs_sb_info *, struct dnode_of_data *,
319 int f2fs_create(struct f2fs_sb_info *, struct dentry *);
320 int f2fs_mkdir(struct f2fs_sb_info *, struct dentry *);
321 int f2fs_symlink(struct f2fs_sb_info *, struct dentry *);
322 int inode_set_selinux(struct f2fs_sb_info *, u32, const char *);
323 int f2fs_find_path(struct f2fs_sb_info *, char *, nid_t *);
324 nid_t f2fs_lookup(struct f2fs_sb_info *, struct f2fs_node *, u8 *, int);
325 int f2fs_add_link(struct f2fs_sb_info *, struct f2fs_node *,
327 struct hardlink_cache_entry *f2fs_search_hardlink(struct f2fs_sb_info *sbi,
331 void *read_all_xattrs(struct f2fs_sb_info *, struct f2fs_node *);