]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - repair/agbtree.h
xfs_repair: fix messaging when shortform_dir2_junk is called
[thirdparty/xfsprogs-dev.git] / repair / agbtree.h
index d8095d20714f086ead4408ec4ec30166d6b6c900..714d8e68716398d43c317523bec8d4d38d833c57 100644 (file)
@@ -35,28 +35,31 @@ struct bt_rebuild {
 
 void finish_rebuild(struct xfs_mount *mp, struct bt_rebuild *btr,
                struct bitmap *lost_blocks);
-void init_freespace_cursors(struct repair_ctx *sc, xfs_agnumber_t agno,
+void init_freespace_cursors(struct repair_ctx *sc, struct xfs_perag *pag,
                unsigned int free_space, unsigned int *nr_extents,
                int *extra_blocks, struct bt_rebuild *btr_bno,
                struct bt_rebuild *btr_cnt);
 void build_freespace_btrees(struct repair_ctx *sc, xfs_agnumber_t agno,
                struct bt_rebuild *btr_bno, struct bt_rebuild *btr_cnt);
 
-void init_ino_cursors(struct repair_ctx *sc, xfs_agnumber_t agno,
+void init_ino_cursors(struct repair_ctx *sc, struct xfs_perag *pag,
                unsigned int free_space, uint64_t *num_inos,
                uint64_t *num_free_inos, struct bt_rebuild *btr_ino,
                struct bt_rebuild *btr_fino);
 void build_inode_btrees(struct repair_ctx *sc, xfs_agnumber_t agno,
                struct bt_rebuild *btr_ino, struct bt_rebuild *btr_fino);
 
-void init_rmapbt_cursor(struct repair_ctx *sc, xfs_agnumber_t agno,
+void init_rmapbt_cursor(struct repair_ctx *sc, struct xfs_perag *pag,
                unsigned int free_space, struct bt_rebuild *btr);
 void build_rmap_tree(struct repair_ctx *sc, xfs_agnumber_t agno,
                struct bt_rebuild *btr);
 
-void init_refc_cursor(struct repair_ctx *sc, xfs_agnumber_t agno,
+void init_refc_cursor(struct repair_ctx *sc, struct xfs_perag *pag,
                unsigned int free_space, struct bt_rebuild *btr);
 void build_refcount_tree(struct repair_ctx *sc, xfs_agnumber_t agno,
                struct bt_rebuild *btr);
 
+xfs_extlen_t estimate_agbtree_blocks(struct xfs_perag *pag,
+               unsigned int free_extents);
+
 #endif /* __XFS_REPAIR_AG_BTREE_H__ */