1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_FSCK_H 3 #define _BCACHEFS_FSCK_H 4 5 #include "str_hash.h" 6 7 int bch2_fsck_update_backpointers(struct btree_trans *, 8 struct snapshots_seen *, 9 const struct bch_hash_desc, 10 struct bch_hash_info *, 11 struct bkey_i *); 12 13 int bch2_check_inodes(struct bch_fs *); 14 int bch2_check_extents(struct bch_fs *); 15 int bch2_check_indirect_extents(struct bch_fs *); 16 int bch2_check_dirents(struct bch_fs *); 17 int bch2_check_xattrs(struct bch_fs *); 18 int bch2_check_root(struct bch_fs *); 19 int bch2_check_subvolume_structure(struct bch_fs *); 20 int bch2_check_unreachable_inodes(struct bch_fs *); 21 int bch2_check_directory_structure(struct bch_fs *); 22 int bch2_check_nlinks(struct bch_fs *); 23 int bch2_fix_reflink_p(struct bch_fs *); 24 25 long bch2_ioctl_fsck_offline(struct bch_ioctl_fsck_offline __user *); 26 long bch2_ioctl_fsck_online(struct bch_fs *, struct bch_ioctl_fsck_online); 27 28 #endif /* _BCACHEFS_FSCK_H */ 29