hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/xfs/libxfs/xfs_ialloc_btree.h
....@@ -48,6 +48,9 @@
4848 extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *,
4949 struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t,
5050 xfs_btnum_t);
51
+struct xfs_btree_cur *xfs_inobt_stage_cursor(struct xfs_mount *mp,
52
+ struct xbtree_afakeroot *afake, xfs_agnumber_t agno,
53
+ xfs_btnum_t btnum);
5154 extern int xfs_inobt_maxrecs(struct xfs_mount *, int, int);
5255
5356 /* ir_holemask to inode allocation bitmap conversion */
....@@ -64,5 +67,11 @@
6467 xfs_agnumber_t agno, xfs_extlen_t *ask, xfs_extlen_t *used);
6568 extern xfs_extlen_t xfs_iallocbt_calc_size(struct xfs_mount *mp,
6669 unsigned long long len);
70
+int xfs_inobt_cur(struct xfs_mount *mp, struct xfs_trans *tp,
71
+ xfs_agnumber_t agno, xfs_btnum_t btnum,
72
+ struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp);
73
+
74
+void xfs_inobt_commit_staged_btree(struct xfs_btree_cur *cur,
75
+ struct xfs_trans *tp, struct xfs_buf *agbp);
6776
6877 #endif /* __XFS_IALLOC_BTREE_H__ */