diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:43:41 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:43:41 +0300 |
commit | 7a2192ac109989e5e077271ca1876104acce731e (patch) | |
tree | a41a09202b18ce00cb1aba484b59a14e1ece0e3f /fs/xfs/scrub/rcbag_btree.h | |
parent | 18a1e644b094a12e5417c386b850aaa85bdca51f (diff) | |
download | linux-7a2192ac109989e5e077271ca1876104acce731e.tar.xz |
xfs: create refcount bag structure for btree repairs
Create a bag structure for refcount information that uses the refcount
bag btree defined in the previous patch.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/rcbag_btree.h')
-rw-r--r-- | fs/xfs/scrub/rcbag_btree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/scrub/rcbag_btree.h b/fs/xfs/scrub/rcbag_btree.h index 9202f7199b68..03cadb032552 100644 --- a/fs/xfs/scrub/rcbag_btree.h +++ b/fs/xfs/scrub/rcbag_btree.h @@ -66,6 +66,13 @@ struct xfs_btree_cur *rcbagbt_mem_cursor(struct xfs_mount *mp, int rcbagbt_mem_init(struct xfs_mount *mp, struct xfbtree *xfbtree, struct xfs_buftarg *btp); +int rcbagbt_lookup_eq(struct xfs_btree_cur *cur, + const struct xfs_rmap_irec *rmap, int *success); +int rcbagbt_get_rec(struct xfs_btree_cur *cur, struct rcbag_rec *rec, int *has); +int rcbagbt_update(struct xfs_btree_cur *cur, const struct rcbag_rec *rec); +int rcbagbt_insert(struct xfs_btree_cur *cur, const struct rcbag_rec *rec, + int *success); + #else # define rcbagbt_init_cur_cache() 0 # define rcbagbt_destroy_cur_cache() ((void)0) |