|
| int | f2fs_set_main_bitmap (struct f2fs_sb_info *sbi, u32 blk, int type) |
| |
| static int | f2fs_test_main_bitmap (struct f2fs_sb_info *sbi, u32 blk) |
| |
| int | f2fs_clear_main_bitmap (struct f2fs_sb_info *sbi, u32 blk) |
| |
| static int | f2fs_test_sit_bitmap (struct f2fs_sb_info *sbi, u32 blk) |
| |
| int | f2fs_set_sit_bitmap (struct f2fs_sb_info *sbi, u32 blk) |
| |
| int | f2fs_clear_sit_bitmap (struct f2fs_sb_info *sbi, u32 blk) |
| |
| static int | add_into_hard_link_list (struct f2fs_sb_info *sbi, u32 nid, u32 link_cnt) |
| |
| static int | find_and_dec_hard_link_list (struct f2fs_sb_info *sbi, u32 nid) |
| |
| static int | is_valid_ssa_node_blk (struct f2fs_sb_info *sbi, u32 nid, u32 blk_addr) |
| |
| static int | is_valid_summary (struct f2fs_sb_info *sbi, struct f2fs_summary *sum, u32 blk_addr) |
| |
| static int | is_valid_ssa_data_blk (struct f2fs_sb_info *sbi, u32 blk_addr, u32 parent_nid, u16 idx_in_node, u8 version) |
| |
| static int | __check_inode_mode (u32 nid, enum FILE_TYPE ftype, u16 mode) |
| |
| static int | sanity_check_nat (struct f2fs_sb_info *sbi, u32 nid, struct node_info *ni) |
| |
| int | fsck_sanity_check_nat (struct f2fs_sb_info *sbi, u32 nid) |
| |
| static int | sanity_check_nid (struct f2fs_sb_info *sbi, u32 nid, struct f2fs_node *node_blk, enum FILE_TYPE ftype, enum NODE_TYPE ntype, struct node_info *ni) |
| |
| int | fsck_sanity_check_nid (struct f2fs_sb_info *sbi, u32 nid, enum FILE_TYPE ftype, enum NODE_TYPE ntype) |
| |
| static int | fsck_chk_xattr_blk (struct f2fs_sb_info *sbi, u32 ino, u32 x_nid, u32 *blk_cnt) |
| |
| int | fsck_chk_node_blk (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, u32 nid, enum FILE_TYPE ftype, enum NODE_TYPE ntype, u32 *blk_cnt, struct f2fs_compr_blk_cnt *cbc, struct child_info *child) |
| |
| int | fsck_chk_root_inode (struct f2fs_sb_info *sbi) |
| |
| static void | get_extent_info (struct extent_info *ext, struct f2fs_extent *i_ext) |
| |
| static void | check_extent_info (struct child_info *child, block_t blkaddr, int last) |
| |
| void | fsck_reada_node_block (struct f2fs_sb_info *sbi, u32 nid) |
| |
| void | fsck_reada_all_direct_node_blocks (struct f2fs_sb_info *sbi, struct f2fs_node *node_blk) |
| |
| static bool | is_zeroed (const u8 *p, size_t size) |
| |
| int | chk_extended_attributes (struct f2fs_sb_info *sbi, u32 nid, struct f2fs_node *inode) |
| |
| void | fsck_chk_inode_blk (struct f2fs_sb_info *sbi, u32 nid, enum FILE_TYPE ftype, struct f2fs_node *node_blk, u32 *blk_cnt, struct f2fs_compr_blk_cnt *cbc, struct node_info *ni, struct child_info *child_d) |
| |
| int | fsck_chk_dnode_blk (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, u32 nid, enum FILE_TYPE ftype, struct f2fs_node *node_blk, u32 *blk_cnt, struct f2fs_compr_blk_cnt *cbc, struct child_info *child, struct node_info *ni) |
| |
| int | fsck_chk_idnode_blk (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, enum FILE_TYPE ftype, struct f2fs_node *node_blk, u32 *blk_cnt, struct f2fs_compr_blk_cnt *cbc, struct child_info *child) |
| |
| int | fsck_chk_didnode_blk (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, enum FILE_TYPE ftype, struct f2fs_node *node_blk, u32 *blk_cnt, struct f2fs_compr_blk_cnt *cbc, struct child_info *child) |
| |
| static int | base64_encode (const u8 *src, int len, char *dst) |
| |
| void | pretty_print_filename (const u8 *raw_name, u32 len, char out[F2FS_PRINT_NAMELEN], int enc_name) |
| |
| static void | print_dentry (struct f2fs_sb_info *sbi, __u8 *name, u8 *bitmap, struct f2fs_dir_entry *dentry, int max, int idx, int last_blk, int enc_name) |
| |
| static int | f2fs_check_hash_code (int encoding, int casefolded, struct f2fs_dir_entry *dentry, const unsigned char *name, u32 len, int enc_name) |
| |
| static int | __get_current_level (int dir_level, u32 pgofs) |
| |
| static int | f2fs_check_dirent_position (const struct f2fs_dir_entry *dentry, const char *printable_name, u32 pgofs, u8 dir_level, u32 pino) |
| |
| static int | __chk_dots_dentries (struct f2fs_sb_info *sbi, int casefolded, struct f2fs_dir_entry *dentry, struct child_info *child, u8 *name, int len, __u8(*filename)[F2FS_SLOT_LEN], int enc_name) |
| |
| static void | nullify_dentry (struct f2fs_dir_entry *dentry, int offs, __u8(*filename)[F2FS_SLOT_LEN], u8 **bitmap) |
| |
| static int | __chk_dentries (struct f2fs_sb_info *sbi, int casefolded, struct child_info *child, u8 *bitmap, struct f2fs_dir_entry *dentry, __u8(*filenames)[F2FS_SLOT_LEN], int max, int last_blk, int enc_name) |
| |
| int | fsck_chk_inline_dentries (struct f2fs_sb_info *sbi, struct f2fs_node *node_blk, struct child_info *child) |
| |
| int | fsck_chk_dentry_blk (struct f2fs_sb_info *sbi, int casefolded, u32 blk_addr, struct child_info *child, int last_blk, int enc_name, struct f2fs_node *node_blk) |
| |
| int | fsck_chk_data_blk (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, u32 blk_addr, struct child_info *child, int last_blk, enum FILE_TYPE ftype, u32 parent_nid, u16 idx_in_node, u8 ver, struct f2fs_node *node_blk) |
| |
| int | fsck_chk_orphan_node (struct f2fs_sb_info *sbi) |
| |
| int | fsck_chk_quota_node (struct f2fs_sb_info *sbi) |
| |
| static void | fsck_disconnect_file (struct f2fs_sb_info *sbi, nid_t ino, bool dealloc) |
| |
| int | fsck_chk_quota_files (struct f2fs_sb_info *sbi) |
| |
| void | fsck_update_sb_flags (struct f2fs_sb_info *sbi) |
| |
| int | fsck_chk_meta (struct f2fs_sb_info *sbi) |
| |
| void | fsck_chk_checkpoint (struct f2fs_sb_info *sbi) |
| |
| void | fsck_init (struct f2fs_sb_info *sbi) |
| |
| static void | fix_hard_links (struct f2fs_sb_info *sbi) |
| |
| static void | fix_nat_entries (struct f2fs_sb_info *sbi) |
| |
| static void | flush_curseg_sit_entries (struct f2fs_sb_info *sbi) |
| |
| static void | fix_checksum (struct f2fs_sb_info *sbi) |
| |
| static void | fix_checkpoint (struct f2fs_sb_info *sbi) |
| |
| static void | fix_checkpoints (struct f2fs_sb_info *sbi) |
| |
| static int | check_curseg_write_pointer (struct f2fs_sb_info *UNUSED(sbi), int UNUSED(type)) |
| |
| int | check_curseg_offset (struct f2fs_sb_info *sbi, int type, bool check_wp) |
| |
| int | check_curseg_offsets (struct f2fs_sb_info *sbi, bool check_wp) |
| |
| static void | fix_curseg_info (struct f2fs_sb_info *sbi, bool check_wp) |
| |
| int | check_sit_types (struct f2fs_sb_info *sbi) |
| |
| static struct f2fs_node * | fsck_get_lpf (struct f2fs_sb_info *sbi) |
| |
| static int | fsck_do_reconnect_file (struct f2fs_sb_info *sbi, struct f2fs_node *lpf, struct f2fs_node *fnode) |
| |
| static void | release_inode_cnt (struct f2fs_sb_info *sbi, bool dealloc) |
| |
| static void | release_node_cnt (struct f2fs_sb_info *sbi, bool dealloc) |
| |
| static void | release_block_cnt (struct f2fs_sb_info *sbi, bool dealloc) |
| |
| static void | release_block (struct f2fs_sb_info *sbi, u64 blkaddr, bool dealloc) |
| |
| static void | release_nat_entry (struct f2fs_sb_info *sbi, u32 nid) |
| |
| static void | fsck_disconnect_file_dnode (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, nid_t nid, bool dealloc) |
| |
| static void | fsck_disconnect_file_idnode (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, nid_t nid, bool dealloc) |
| |
| static void | fsck_disconnect_file_didnode (struct f2fs_sb_info *sbi, struct f2fs_inode *inode, nid_t nid, bool dealloc) |
| |
| static int | fsck_reconnect_file (struct f2fs_sb_info *sbi) |
| |
| static void | fix_wp_sit_alignment (struct f2fs_sb_info *UNUSED(sbi)) |
| |
| void | fsck_chk_and_fix_write_pointers (struct f2fs_sb_info *sbi) |
| |
| int | fsck_chk_curseg_info (struct f2fs_sb_info *sbi) |
| |
| void | print_fault_cnt (struct f2fs_fault_info *ffi) |
| |
| int | fsck_verify (struct f2fs_sb_info *sbi) |
| |
| void | fsck_free (struct f2fs_sb_info *sbi) |
| |