| .. | .. |
|---|
| 31 | 31 | |
|---|
| 32 | 32 | struct xchk_btree { |
|---|
| 33 | 33 | /* caller-provided scrub state */ |
|---|
| 34 | | - struct xfs_scrub *sc; |
|---|
| 35 | | - struct xfs_btree_cur *cur; |
|---|
| 36 | | - xchk_btree_rec_fn scrub_rec; |
|---|
| 37 | | - struct xfs_owner_info *oinfo; |
|---|
| 38 | | - void *private; |
|---|
| 34 | + struct xfs_scrub *sc; |
|---|
| 35 | + struct xfs_btree_cur *cur; |
|---|
| 36 | + xchk_btree_rec_fn scrub_rec; |
|---|
| 37 | + const struct xfs_owner_info *oinfo; |
|---|
| 38 | + void *private; |
|---|
| 39 | 39 | |
|---|
| 40 | 40 | /* internal scrub state */ |
|---|
| 41 | | - union xfs_btree_rec lastrec; |
|---|
| 42 | | - bool firstrec; |
|---|
| 43 | | - union xfs_btree_key lastkey[XFS_BTREE_MAXLEVELS]; |
|---|
| 44 | | - bool firstkey[XFS_BTREE_MAXLEVELS]; |
|---|
| 45 | | - struct list_head to_check; |
|---|
| 41 | + union xfs_btree_rec lastrec; |
|---|
| 42 | + bool firstrec; |
|---|
| 43 | + union xfs_btree_key lastkey[XFS_BTREE_MAXLEVELS]; |
|---|
| 44 | + bool firstkey[XFS_BTREE_MAXLEVELS]; |
|---|
| 45 | + struct list_head to_check; |
|---|
| 46 | 46 | }; |
|---|
| 47 | 47 | int xchk_btree(struct xfs_scrub *sc, struct xfs_btree_cur *cur, |
|---|
| 48 | | - xchk_btree_rec_fn scrub_fn, struct xfs_owner_info *oinfo, |
|---|
| 48 | + xchk_btree_rec_fn scrub_fn, const struct xfs_owner_info *oinfo, |
|---|
| 49 | 49 | void *private); |
|---|
| 50 | 50 | |
|---|
| 51 | 51 | #endif /* __XFS_SCRUB_BTREE_H__ */ |
|---|