Home
last modified time | relevance | path

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

/third_party/f2fs-tools/fsck/
Dfsck.h90 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 *,
[all …]
Df2fs.h248 struct f2fs_sb_info { struct
295 static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) in F2FS_RAW_SUPER() argument
300 static inline struct f2fs_checkpoint *F2FS_CKPT(struct f2fs_sb_info *sbi) in F2FS_CKPT()
305 static inline struct f2fs_fsck *F2FS_FSCK(struct f2fs_sb_info *sbi) in F2FS_FSCK()
310 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I()
315 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I()
320 static inline struct sit_info *SIT_I(struct f2fs_sb_info *sbi) in SIT_I()
355 static inline unsigned long __bitmap_size(struct f2fs_sb_info *sbi, int flag) in __bitmap_size()
368 static inline block_t __cp_payload(struct f2fs_sb_info *sbi) in __cp_payload()
373 static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag) in __bitmap_ptr()
[all …]
Dquotaio.h68 struct f2fs_sb_info *sbi;
116 struct f2fs_sb_info *sbi;
201 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h,
205 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h,
209 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h,
218 errcode_t quota_init_context(struct f2fs_sb_info *sbi);
222 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype);
226 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi,
Dmount.c37 static int get_device_idx(struct f2fs_sb_info *sbi, uint32_t segno) in get_device_idx()
51 static int get_zone_idx_from_dev(struct f2fs_sb_info *sbi, in get_zone_idx_from_dev()
60 bool is_usable_seg(struct f2fs_sb_info *sbi, unsigned int segno) in is_usable_seg()
80 unsigned int get_usable_seg_count(struct f2fs_sb_info *sbi) in get_usable_seg_count()
93 bool is_usable_seg(struct f2fs_sb_info *UNUSED(sbi), unsigned int UNUSED(segno)) in is_usable_seg()
98 unsigned int get_usable_seg_count(struct f2fs_sb_info *sbi) in get_usable_seg_count()
105 u32 get_free_segments(struct f2fs_sb_info *sbi) in get_free_segments()
119 void update_free_segments(struct f2fs_sb_info *sbi) in update_free_segments()
237 void print_inode_info(struct f2fs_sb_info *sbi, in print_inode_info()
348 void print_node_info(struct f2fs_sb_info *sbi, in print_node_info()
[all …]
Dfsck.c19 int f2fs_set_main_bitmap(struct f2fs_sb_info *sbi, u32 blk, int type) in f2fs_set_main_bitmap()
40 static inline int f2fs_test_main_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_test_main_bitmap()
48 static inline int f2fs_clear_main_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_clear_main_bitmap()
56 static inline int f2fs_test_sit_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_test_sit_bitmap()
63 int f2fs_set_sit_bitmap(struct f2fs_sb_info *sbi, u32 blk) in f2fs_set_sit_bitmap()
70 static int add_into_hard_link_list(struct f2fs_sb_info *sbi, in add_into_hard_link_list()
111 static int find_and_dec_hard_link_list(struct f2fs_sb_info *sbi, u32 nid) in find_and_dec_hard_link_list()
144 static int is_valid_ssa_node_blk(struct f2fs_sb_info *sbi, u32 nid, in is_valid_ssa_node_blk()
221 static int is_valid_summary(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_valid_summary()
269 static int is_valid_ssa_data_blk(struct f2fs_sb_info *sbi, u32 blk_addr, in is_valid_ssa_data_blk()
[all …]
Ddump.c37 void nat_dump(struct f2fs_sb_info *sbi, nid_t start_nat, nid_t end_nat) in nat_dump()
109 void sit_dump(struct f2fs_sb_info *sbi, unsigned int start_sit, in sit_dump()
177 void ssa_dump(struct f2fs_sb_info *sbi, int start_ssa, int end_ssa) in ssa_dump()
250 static void dump_data_blk(struct f2fs_sb_info *sbi, __u64 offset, u32 blkaddr) in dump_data_blk()
294 static void dump_node_blk(struct f2fs_sb_info *sbi, int ntype, in dump_node_blk()
353 static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) in dump_xattr()
415 static void dump_xattr(struct f2fs_sb_info *UNUSED(sbi), in dump_xattr()
422 static int dump_inode_blk(struct f2fs_sb_info *sbi, u32 nid, in dump_inode_blk()
472 static int dump_file(struct f2fs_sb_info *sbi, struct node_info *ni, in dump_file()
530 static bool is_sit_bitmap_set(struct f2fs_sb_info *sbi, u32 blk_addr) in is_sit_bitmap_set()
[all …]
Ddir.c110 static int find_in_level(struct f2fs_sb_info *sbi, struct f2fs_node *dir, in find_in_level()
167 static int f2fs_find_entry(struct f2fs_sb_info *sbi, in f2fs_find_entry()
182 nid_t f2fs_lookup(struct f2fs_sb_info *sbi, struct f2fs_node *dir, in f2fs_lookup()
221 int f2fs_add_link(struct f2fs_sb_info *sbi, struct f2fs_node *parent, in f2fs_add_link()
336 static void make_empty_dir(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in make_empty_dir()
377 static void page_symlink(struct f2fs_sb_info *sbi, struct f2fs_node *inode, in page_symlink()
437 static void set_file_temperature(struct f2fs_sb_info *sbi, in set_file_temperature()
462 static void init_inode_block(struct f2fs_sb_info *sbi, in init_inode_block()
550 int convert_inline_dentry(struct f2fs_sb_info *sbi, struct f2fs_node *node, in convert_inline_dentry()
653 struct hardlink_cache_entry *f2fs_search_hardlink(struct f2fs_sb_info *sbi, in f2fs_search_hardlink()
[all …]
Dresize.c168 static void migrate_main(struct f2fs_sb_info *sbi, unsigned int offset) in migrate_main()
211 static void move_ssa(struct f2fs_sb_info *sbi, unsigned int segno, in move_ssa()
235 static void migrate_ssa(struct f2fs_sb_info *sbi, in migrate_ssa()
277 static int shrink_nats(struct f2fs_sb_info *sbi, in shrink_nats()
325 static void migrate_nat(struct f2fs_sb_info *sbi, in migrate_nat()
393 static void migrate_sit(struct f2fs_sb_info *sbi, in migrate_sit()
451 static void rebuild_checkpoint(struct f2fs_sb_info *sbi, in rebuild_checkpoint()
606 static int f2fs_resize_check(struct f2fs_sb_info *sbi, struct f2fs_super_block *new_sb) in f2fs_resize_check()
627 static int f2fs_resize_grow(struct f2fs_sb_info *sbi) in f2fs_resize_grow()
685 static int f2fs_resize_shrink(struct f2fs_sb_info *sbi) in f2fs_resize_shrink()
[all …]
Dsegment.c23 int reserve_new_block(struct f2fs_sb_info *sbi, block_t *to, in reserve_new_block()
117 int new_data_block(struct f2fs_sb_info *sbi, void *block, in new_data_block()
170 u64 f2fs_read(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_read()
260 static u64 f2fs_write_ex(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_write_ex()
380 u64 f2fs_write(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_write()
386 u64 f2fs_write_compress_data(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_write_compress_data()
392 u64 f2fs_write_addrtag(struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset, in f2fs_write_addrtag()
401 void f2fs_filesize_update(struct f2fs_sb_info *sbi, nid_t ino, u64 filesize) in f2fs_filesize_update()
448 u64 f2fs_fix_mutable(struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset, in f2fs_fix_mutable()
489 static void update_largest_extent(struct f2fs_sb_info *sbi, nid_t ino) in update_largest_extent()
[all …]
Dxattr.c20 void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in read_all_xattrs()
83 static void write_all_xattrs(struct f2fs_sb_info *sbi, in write_all_xattrs()
133 int f2fs_setxattr(struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name, in f2fs_setxattr()
250 int inode_set_selinux(struct f2fs_sb_info *sbi, u32 ino, const char *secon) in inode_set_selinux()
Dnode.c19 void f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid) in f2fs_alloc_nid()
33 void f2fs_release_nid(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_release_nid()
43 int f2fs_rebuild_qf_inode(struct f2fs_sb_info *sbi, int qtype) in f2fs_rebuild_qf_inode()
108 block_t new_node_block(struct f2fs_sb_info *sbi, in new_node_block()
243 int get_dnode_of_data(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, in get_dnode_of_data()
Dsload.c48 static int f2fs_make_directory(struct f2fs_sb_info *sbi, in f2fs_make_directory()
71 static int set_selinux_xattr(struct f2fs_sb_info *sbi, const char *path, in set_selinux_xattr()
203 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory()
300 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory()
347 int f2fs_sload(struct f2fs_sb_info *sbi) in f2fs_sload()
Dquotaio.c106 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_open()
166 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_create()
197 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_close()
Dmain.c845 static int do_fsck(struct f2fs_sb_info *sbi) in do_fsck()
924 static void do_dump(struct f2fs_sb_info *sbi) in do_dump()
955 static int do_defrag(struct f2fs_sb_info *sbi) in do_defrag()
1011 static int do_resize(struct f2fs_sb_info *sbi) in do_resize()
1027 static int init_compr(struct f2fs_sb_info *sbi) in init_compr()
1051 static int do_sload(struct f2fs_sb_info *sbi) in do_sload()
1068 static int do_label(struct f2fs_sb_info *sbi) in do_label()
1119 struct f2fs_sb_info *sbi; in main()
Ddefrag.c12 static int migrate_block(struct f2fs_sb_info *sbi, u64 from, u64 to) in migrate_block()
63 int f2fs_defragment(struct f2fs_sb_info *sbi, u64 from, u64 len, u64 to, int left) in f2fs_defragment()
Dnode.h26 static inline unsigned int ADDRS_PER_PAGE(struct f2fs_sb_info *sbi, in ADDRS_PER_PAGE()
138 static inline bool is_recoverable_dnode(struct f2fs_sb_info *sbi, in is_recoverable_dnode()
Dmkquota.c66 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype) in quota_write_inode()
146 errcode_t quota_init_context(struct f2fs_sb_info *sbi) in quota_init_context()
362 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi, in quota_compare_and_update()
/third_party/f2fs-tools/tools/debug_tools/
Dfsck_debug.h15 void dump_sbi_info(struct f2fs_sb_info *);
19 static inline unsigned int total_segments(struct f2fs_sb_info *sbi) in total_segments()
26 static inline unsigned int reserved_segments(struct f2fs_sb_info *sbi) in reserved_segments()
31 static inline unsigned int overprov_segments(struct f2fs_sb_info *sbi) in overprov_segments()
36 static inline block_t of_valid_block_count(struct f2fs_sb_info *sbi) in of_valid_block_count()
41 static inline unsigned int f2fs_utilization(struct f2fs_sb_info *sbi) in f2fs_utilization()
Dfsck_debug.c12 void dump_sbi_info(struct f2fs_sb_info *sbi) in dump_sbi_info()
30 sizeof(struct f2fs_sb_info)); in dump_sbi_info()