]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - scrub/spacemap.h
xfs_scrub: move to mallinfo2 when available
[thirdparty/xfsprogs-dev.git] / scrub / spacemap.h
CommitLineData
959ef981 1// SPDX-License-Identifier: GPL-2.0+
bc94c5d6
DW
2/*
3 * Copyright (C) 2018 Oracle. All Rights Reserved.
bc94c5d6 4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
bc94c5d6
DW
5 */
6#ifndef XFS_SCRUB_SPACEMAP_H_
7#define XFS_SCRUB_SPACEMAP_H_
8
aeff0641 9/*
7a2eef2b
DW
10 * Visit each space mapping in the filesystem. Return 0 to continue iteration
11 * or a positive error code to stop iterating and return to the caller.
aeff0641 12 */
7a2eef2b 13typedef int (*scrub_fsmap_iter_fn)(struct scrub_ctx *ctx,
bc94c5d6
DW
14 struct fsmap *fsr, void *arg);
15
7a2eef2b
DW
16int scrub_iterate_fsmap(struct scrub_ctx *ctx, struct fsmap *keys,
17 scrub_fsmap_iter_fn fn, void *arg);
18int scrub_scan_all_spacemaps(struct scrub_ctx *ctx, scrub_fsmap_iter_fn fn,
bc94c5d6
DW
19 void *arg);
20
21#endif /* XFS_SCRUB_SPACEMAP_H_ */