hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/xfs/libxfs/xfs_rmap_btree.h
....@@ -9,6 +9,7 @@
99 struct xfs_buf;
1010 struct xfs_btree_cur;
1111 struct xfs_mount;
12
+struct xbtree_afakeroot;
1213
1314 /* rmaps only exist on crc enabled filesystems */
1415 #define XFS_RMAP_BLOCK_LEN XFS_BTREE_SBLOCK_CRC_LEN
....@@ -43,6 +44,10 @@
4344 struct xfs_btree_cur *xfs_rmapbt_init_cursor(struct xfs_mount *mp,
4445 struct xfs_trans *tp, struct xfs_buf *bp,
4546 xfs_agnumber_t agno);
47
+struct xfs_btree_cur *xfs_rmapbt_stage_cursor(struct xfs_mount *mp,
48
+ struct xbtree_afakeroot *afake, xfs_agnumber_t agno);
49
+void xfs_rmapbt_commit_staged_btree(struct xfs_btree_cur *cur,
50
+ struct xfs_trans *tp, struct xfs_buf *agbp);
4651 int xfs_rmapbt_maxrecs(int blocklen, int leaf);
4752 extern void xfs_rmapbt_compute_maxlevels(struct xfs_mount *mp);
4853