When we're freeing extents that have been set in a bitmap, break the bitmap extent into multiple sub-extents organized by fate, and reap the extents. This enables us to dispose of old resources more efficiently than doing them block by block. While we're at it, rename the reaping functions to make it clear that they're reaping per-AG extents. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
14 lines
391 B
C
14 lines
391 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (C) 2022-2023 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_REAP_H__
|
|
#define __XFS_SCRUB_REAP_H__
|
|
|
|
int xrep_reap_ag_metadata(struct xfs_scrub *sc, struct xbitmap *bitmap,
|
|
const struct xfs_owner_info *oinfo,
|
|
enum xfs_ag_resv_type type);
|
|
|
|
#endif /* __XFS_SCRUB_REAP_H__ */
|