diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:52 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:07:40 -0800 |
commit | e5f2ecdb6a742ee8fb7ba61fc6e5c818f0f4f126 (patch) | |
tree | a2bb9d1063b0edd11689416fa3af646a1245f46d /fs/xfs/scrub/reap.h | |
parent | 6f29588d2a240eb741e8fd9386a1d09abec7a4da (diff) |
xfs: add the ability to reap entire inode forksrepair-tempfiles_2022-11-09
In preparation for supporting repair of indexed file-based metadata
(such as realtime bitmaps, directories, and extended attribute data),
add a function to reap the old blocks after a metadata repair finishes.
IOWs, this is an elaborate bunmapi call that deals with crosslinked
blocks by unmapping them without freeing them, and also scans for incore
buffers to invalidate.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/reap.h')
-rw-r--r-- | fs/xfs/scrub/reap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/reap.h b/fs/xfs/scrub/reap.h index 3c31c795fd1a..6606b119b9ec 100644 --- a/fs/xfs/scrub/reap.h +++ b/fs/xfs/scrub/reap.h @@ -10,6 +10,7 @@ int xrep_reap_agblocks(struct xfs_scrub *sc, struct xagb_bitmap *bitmap, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type); int xrep_reap_fsblocks(struct xfs_scrub *sc, struct xfsb_bitmap *bitmap, const struct xfs_owner_info *oinfo); +int xrep_reap_ifork(struct xfs_scrub *sc, struct xfs_inode *ip, int whichfork); /* Buffer cache scan context. */ struct xrep_bufscan { |