diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-14 06:34:34 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-15 18:12:50 -0700 |
commit | 9f3a080ef19b1c182a8fb1edbfb707fdb811437c (patch) | |
tree | a432e25a91854614b5e6f50288dbb4dc51a4ede9 /fs/xfs/libxfs/xfs_alloc.h | |
parent | ddd10c2fe20e7ca6d11ddf84f905edba080b26a7 (diff) | |
download | linux-9f3a080ef19b1c182a8fb1edbfb707fdb811437c.tar.gz linux-9f3a080ef19b1c182a8fb1edbfb707fdb811437c.tar.bz2 linux-9f3a080ef19b1c182a8fb1edbfb707fdb811437c.zip |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.h b/fs/xfs/libxfs/xfs_alloc.h index 46d48c6f83b7..0747adcd57d6 100644 --- a/fs/xfs/libxfs/xfs_alloc.h +++ b/fs/xfs/libxfs/xfs_alloc.h @@ -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__ */ |