diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-30 07:18:09 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-05-30 17:03:14 +0200 |
commit | 73d6b42aa4dcdd7cdc07a945f035b0c1ca48f891 (patch) | |
tree | 6220e252945fcf43b943812defbd99265d2e9fc6 /fs/xfs/scrub/repair.h | |
parent | xfs: add helpers to deal with transaction allocation and rolling (diff) | |
download | linux-73d6b42aa4dcdd7cdc07a945f035b0c1ca48f891.tar.xz linux-73d6b42aa4dcdd7cdc07a945f035b0c1ca48f891.zip |
xfs: add helpers to allocate and initialize fresh btree roots
Add a pair of helper functions to allocate and initialize fresh btree
roots. The repair functions will use these as part of recreating
corrupted metadata.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/repair.h')
-rw-r--r-- | fs/xfs/scrub/repair.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/scrub/repair.h b/fs/xfs/scrub/repair.h index 8d181dce6171..40990fa5f381 100644 --- a/fs/xfs/scrub/repair.h +++ b/fs/xfs/scrub/repair.h @@ -36,6 +36,12 @@ int xfs_repair_roll_ag_trans(struct xfs_scrub_context *sc); bool xfs_repair_ag_has_space(struct xfs_perag *pag, xfs_extlen_t nr_blocks, enum xfs_ag_resv_type type); xfs_extlen_t xfs_repair_calc_ag_resblks(struct xfs_scrub_context *sc); +int xfs_repair_alloc_ag_block(struct xfs_scrub_context *sc, + struct xfs_owner_info *oinfo, xfs_fsblock_t *fsbno, + enum xfs_ag_resv_type resv); +int xfs_repair_init_btblock(struct xfs_scrub_context *sc, xfs_fsblock_t fsb, + struct xfs_buf **bpp, xfs_btnum_t btnum, + const struct xfs_buf_ops *ops); /* Metadata repairers */ |