summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/dabtree.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-10-31 12:10:02 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-11-01 15:03:16 -0700
commit13791d3b833428e7dc7253e066eef8cae75cd1c0 (patch)
tree3600246c9c4168c342ec2c7917e99370594f4611 /fs/xfs/scrub/dabtree.h
parente9e899a2a8c3c23b3084b048466f417ed92286d3 (diff)
xfs: scrub extended attribute leaf space
As we walk the attribute btree, explicitly check the structure of the attribute leaves to make sure the pointers make sense and the freemap is sensible. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/dabtree.h')
-rw-r--r--fs/xfs/scrub/dabtree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/scrub/dabtree.h b/fs/xfs/scrub/dabtree.h
index 2a766de1f3a3..d31468d68cef 100644
--- a/fs/xfs/scrub/dabtree.h
+++ b/fs/xfs/scrub/dabtree.h
@@ -28,6 +28,7 @@ struct xfs_scrub_da_btree {
int maxrecs[XFS_DA_NODE_MAXDEPTH];
struct xfs_da_state *state;
struct xfs_scrub_context *sc;
+ void *private;
/*
* Lowest and highest directory block address in which we expect
@@ -53,6 +54,6 @@ void xfs_scrub_da_set_corrupt(struct xfs_scrub_da_btree *ds, int level);
int xfs_scrub_da_btree_hash(struct xfs_scrub_da_btree *ds, int level,
__be32 *hashp);
int xfs_scrub_da_btree(struct xfs_scrub_context *sc, int whichfork,
- xfs_scrub_da_btree_rec_fn scrub_fn);
+ xfs_scrub_da_btree_rec_fn scrub_fn, void *private);
#endif /* __XFS_SCRUB_DABTREE_H__ */