xfs: hoist xfs_scrub_agfl_walk to libxfs as xfs_agfl_walk
This function is basically a generic AGFL block iterator, so promote it to libxfs ahead of online repair wanting to use it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -262,4 +262,9 @@ bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
|
||||
int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
|
||||
xfs_extlen_t len, bool *exist);
|
||||
|
||||
typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
|
||||
void *priv);
|
||||
int xfs_agfl_walk(struct xfs_mount *mp, struct xfs_agf *agf,
|
||||
struct xfs_buf *agflbp, xfs_agfl_walk_fn walk_fn, void *priv);
|
||||
|
||||
#endif /* __XFS_ALLOC_H__ */
|
||||
|
Reference in New Issue
Block a user