diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-08-10 17:48:02 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-08-10 17:48:02 +0300 |
commit | 8e54e06b5c7dd44b5d52581ef60a94b178aa878f (patch) | |
tree | 7253c8987e39df222c375a9fe5015718fe67ce63 /fs/xfs/scrub/repair.h | |
parent | e06ef14b9f8eb5edab8c466680818d436eefdff0 (diff) | |
download | linux-8e54e06b5c7dd44b5d52581ef60a94b178aa878f.tar.xz |
xfs: only invalidate blocks if we're going to free them
When we're discarding old btree blocks after a repair, only invalidate
the buffers for the ones that we're freeing -- if the metadata was
crosslinked with another data structure, we don't want to touch it.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/repair.h')
-rw-r--r-- | fs/xfs/scrub/repair.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h index 601caa70f870..e01d63a4a93b 100644 --- a/fs/xfs/scrub/repair.h +++ b/fs/xfs/scrub/repair.h @@ -28,7 +28,6 @@ struct xbitmap; struct xagb_bitmap; int xrep_fix_freelist(struct xfs_scrub *sc, bool can_shrink); -int xrep_invalidate_blocks(struct xfs_scrub *sc, struct xbitmap *btlist); struct xrep_find_ag_btree { /* in: rmap owner of the btree we're looking for */ |