Home
last modified time | relevance | path

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

/external/f2fs-tools/fsck/
Dfsck.h72 struct f2fs_sb_info sbi;
136 extern int fsck_chk_orphan_node(struct f2fs_sb_info *);
137 extern int fsck_chk_quota_node(struct f2fs_sb_info *);
138 extern int fsck_chk_quota_files(struct f2fs_sb_info *);
139 extern int fsck_chk_node_blk(struct f2fs_sb_info *, struct f2fs_inode *, u32,
142 extern void fsck_chk_inode_blk(struct f2fs_sb_info *, u32, enum FILE_TYPE,
144 extern int fsck_chk_dnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
147 extern int fsck_chk_idnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
149 extern int fsck_chk_didnode_blk(struct f2fs_sb_info *, struct f2fs_inode *,
151 extern int fsck_chk_data_blk(struct f2fs_sb_info *sbi, u32, struct child_info *,
[all …]
Df2fs.h161 struct f2fs_sb_info { struct
200 static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) in F2FS_RAW_SUPER() argument
205 static inline struct f2fs_checkpoint *F2FS_CKPT(struct f2fs_sb_info *sbi) in F2FS_CKPT()
210 static inline struct f2fs_fsck *F2FS_FSCK(struct f2fs_sb_info *sbi) in F2FS_FSCK()
215 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I()
220 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I()
225 static inline struct sit_info *SIT_I(struct f2fs_sb_info *sbi) in SIT_I()
249 static inline unsigned long __bitmap_size(struct f2fs_sb_info *sbi, int flag) in __bitmap_size()
262 static inline block_t __cp_payload(struct f2fs_sb_info *sbi) in __cp_payload()
267 static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag) in __bitmap_ptr()
[all …]
Dquotaio.h58 struct f2fs_sb_info *sbi;
106 struct f2fs_sb_info *sbi;
193 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h,
197 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h,
201 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h,
210 errcode_t quota_init_context(struct f2fs_sb_info *sbi);
214 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype);
218 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi,
Dmount.c31 u32 get_free_segments(struct f2fs_sb_info *sbi) in get_free_segments()
44 void update_free_segments(struct f2fs_sb_info *sbi) in update_free_segments()
170 void print_inode_info(struct f2fs_sb_info *sbi, in print_inode_info()
268 void print_node_info(struct f2fs_sb_info *sbi, in print_node_info()
348 void print_ckpt_info(struct f2fs_sb_info *sbi) in print_ckpt_info()
662 int validate_super_block(struct f2fs_sb_info *sbi, enum SB_ADDR sb_addr) in validate_super_block()
713 int init_sb_info(struct f2fs_sb_info *sbi) in init_sb_info()
772 void *validate_checkpoint(struct f2fs_sb_info *sbi, block_t cp_addr, in validate_checkpoint()
836 int get_valid_checkpoint(struct f2fs_sb_info *sbi) in get_valid_checkpoint()
918 int sanity_check_ckpt(struct f2fs_sb_info *sbi) in sanity_check_ckpt()
[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()
217 static int is_valid_summary(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_valid_summary()
261 static int is_valid_ssa_data_blk(struct f2fs_sb_info *sbi, u32 blk_addr, in is_valid_ssa_data_blk()
[all …]
Ddump.c34 void nat_dump(struct f2fs_sb_info *sbi, nid_t start_nat, nid_t end_nat) in nat_dump()
106 void sit_dump(struct f2fs_sb_info *sbi, unsigned int start_sit, in sit_dump()
174 void ssa_dump(struct f2fs_sb_info *sbi, int start_ssa, int end_ssa) in ssa_dump()
230 static void dump_data_blk(struct f2fs_sb_info *sbi, __u64 offset, u32 blkaddr) in dump_data_blk()
250 static void dump_node_blk(struct f2fs_sb_info *sbi, int ntype, in dump_node_blk()
304 static void dump_xattr(struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) in dump_xattr()
364 static void dump_xattr(struct f2fs_sb_info *UNUSED(sbi), in dump_xattr()
371 static void dump_inode_blk(struct f2fs_sb_info *sbi, u32 nid, in dump_inode_blk()
408 static void dump_file(struct f2fs_sb_info *sbi, struct node_info *ni, in dump_file()
460 static bool is_sit_bitmap_set(struct f2fs_sb_info *sbi, u32 blk_addr) in is_sit_bitmap_set()
[all …]
Ddir.c109 static int find_in_level(struct f2fs_sb_info *sbi,struct f2fs_node *dir, in find_in_level()
165 static int f2fs_find_entry(struct f2fs_sb_info *sbi, in f2fs_find_entry()
180 nid_t f2fs_lookup(struct f2fs_sb_info *sbi, struct f2fs_node *dir, in f2fs_lookup()
219 int f2fs_add_link(struct f2fs_sb_info *sbi, struct f2fs_node *parent, in f2fs_add_link()
332 static void make_empty_dir(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in make_empty_dir()
372 static void page_symlink(struct f2fs_sb_info *sbi, struct f2fs_node *inode, in page_symlink()
407 static void init_inode_block(struct f2fs_sb_info *sbi, in init_inode_block()
481 int convert_inline_dentry(struct f2fs_sb_info *sbi, struct f2fs_node *node, in convert_inline_dentry()
577 int f2fs_create(struct f2fs_sb_info *sbi, struct dentry *de) in f2fs_create()
656 int f2fs_mkdir(struct f2fs_sb_info *sbi, struct dentry *de) in f2fs_mkdir()
[all …]
Dsegment.c27 void reserve_new_block(struct f2fs_sb_info *sbi, block_t *to, in reserve_new_block()
64 int new_data_block(struct f2fs_sb_info *sbi, void *block, in new_data_block()
92 u64 f2fs_read(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_read()
175 u64 f2fs_write(struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, in f2fs_write()
269 void f2fs_filesize_update(struct f2fs_sb_info *sbi, nid_t ino, u64 filesize) in f2fs_filesize_update()
288 int f2fs_build_file(struct f2fs_sb_info *sbi, struct dentry *de) in f2fs_build_file()
Dresize.c166 static void migrate_main(struct f2fs_sb_info *sbi, unsigned int offset) in migrate_main()
209 static void move_ssa(struct f2fs_sb_info *sbi, unsigned int segno, in move_ssa()
233 static void migrate_ssa(struct f2fs_sb_info *sbi, in migrate_ssa()
275 static int shrink_nats(struct f2fs_sb_info *sbi, in shrink_nats()
323 static void migrate_nat(struct f2fs_sb_info *sbi, in migrate_nat()
390 static void migrate_sit(struct f2fs_sb_info *sbi, in migrate_sit()
448 static void rebuild_checkpoint(struct f2fs_sb_info *sbi, in rebuild_checkpoint()
580 static int f2fs_resize_grow(struct f2fs_sb_info *sbi) in f2fs_resize_grow()
635 static int f2fs_resize_shrink(struct f2fs_sb_info *sbi) in f2fs_resize_shrink()
696 int f2fs_resize(struct f2fs_sb_info *sbi) in f2fs_resize()
Dxattr.c20 void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode) in read_all_xattrs()
67 static void write_all_xattrs(struct f2fs_sb_info *sbi, in write_all_xattrs()
116 int f2fs_setxattr(struct f2fs_sb_info *sbi, nid_t ino, int index, const char *name, in f2fs_setxattr()
234 int inode_set_selinux(struct f2fs_sb_info *sbi, u32 ino, const char *secon) in inode_set_selinux()
Dsload.c44 static void f2fs_make_directory(struct f2fs_sb_info *sbi, in f2fs_make_directory()
60 static int set_selinux_xattr(struct f2fs_sb_info *sbi, const char *path, in set_selinux_xattr()
169 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory()
293 int f2fs_sload(struct f2fs_sb_info *sbi) in f2fs_sload()
Dquotaio.c97 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_open()
157 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_create()
188 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_close()
Dmain.c575 static void do_fsck(struct f2fs_sb_info *sbi) in do_fsck()
640 static void do_dump(struct f2fs_sb_info *sbi) in do_dump()
667 static int do_defrag(struct f2fs_sb_info *sbi) in do_defrag()
716 static int do_resize(struct f2fs_sb_info *sbi) in do_resize()
730 static int do_sload(struct f2fs_sb_info *sbi) in do_sload()
744 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.c19 void f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid, int inode) in f2fs_alloc_nid()
58 block_t new_node_block(struct f2fs_sb_info *sbi, in new_node_block()
182 int get_dnode_of_data(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, in get_dnode_of_data()
Dmkquota.c62 errcode_t quota_write_inode(struct f2fs_sb_info *sbi, enum quota_type qtype) in quota_write_inode()
142 errcode_t quota_init_context(struct f2fs_sb_info *sbi) in quota_init_context()
358 errcode_t quota_compare_and_update(struct f2fs_sb_info *sbi, in quota_compare_and_update()