xfs: create a function to query all records in a btree
Create a helper function that will query all records in a btree. This will be used by the online repair functions to examine every record in a btree to rebuild a second btree. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -162,6 +162,8 @@ typedef int (*xfs_rmap_query_range_fn)(
|
||||
int xfs_rmap_query_range(struct xfs_btree_cur *cur,
|
||||
struct xfs_rmap_irec *low_rec, struct xfs_rmap_irec *high_rec,
|
||||
xfs_rmap_query_range_fn fn, void *priv);
|
||||
int xfs_rmap_query_all(struct xfs_btree_cur *cur, xfs_rmap_query_range_fn fn,
|
||||
void *priv);
|
||||
|
||||
enum xfs_rmap_intent_type {
|
||||
XFS_RMAP_MAP,
|
||||
|
Reference in New Issue
Block a user