hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/fs/xfs/scrub/common.h
....@@ -46,6 +46,7 @@
4646 struct xfs_buf *bp);
4747 void xchk_ino_set_preen(struct xfs_scrub *sc, xfs_ino_t ino);
4848
49
+void xchk_set_corrupt(struct xfs_scrub *sc);
4950 void xchk_block_set_corrupt(struct xfs_scrub *sc,
5051 struct xfs_buf *bp);
5152 void xchk_ino_set_corrupt(struct xfs_scrub *sc, xfs_ino_t ino);
....@@ -112,6 +113,7 @@
112113 return -ENOENT;
113114 }
114115 #endif
116
+int xchk_setup_fscounters(struct xfs_scrub *sc, struct xfs_inode *ip);
115117
116118 void xchk_ag_free(struct xfs_scrub *sc, struct xchk_ag *sa);
117119 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno,
....@@ -123,7 +125,7 @@
123125 void xchk_ag_btcur_free(struct xchk_ag *sa);
124126 int xchk_ag_btcur_init(struct xfs_scrub *sc, struct xchk_ag *sa);
125127 int xchk_count_rmap_ownedby_ag(struct xfs_scrub *sc, struct xfs_btree_cur *cur,
126
- struct xfs_owner_info *oinfo, xfs_filblks_t *blocks);
128
+ const struct xfs_owner_info *oinfo, xfs_filblks_t *blocks);
127129
128130 int xchk_setup_ag_btree(struct xfs_scrub *sc, struct xfs_inode *ip,
129131 bool force_log);
....@@ -144,5 +146,7 @@
144146
145147 int xchk_metadata_inode_forks(struct xfs_scrub *sc);
146148 int xchk_ilock_inverted(struct xfs_inode *ip, uint lock_mode);
149
+void xchk_stop_reaping(struct xfs_scrub *sc);
150
+void xchk_start_reaping(struct xfs_scrub *sc);
147151
148152 #endif /* __XFS_SCRUB_COMMON_H__ */