hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/fs/xfs/libxfs/xfs_alloc_btree.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 /*
33 * Copyright (c) 2000,2005 Silicon Graphics, Inc.
44 * All Rights Reserved.
....@@ -13,6 +13,7 @@
1313 struct xfs_buf;
1414 struct xfs_btree_cur;
1515 struct xfs_mount;
16
+struct xbtree_afakeroot;
1617
1718 /*
1819 * Btree block header size depends on a superblock flag.
....@@ -48,8 +49,14 @@
4849 extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *,
4950 struct xfs_trans *, struct xfs_buf *,
5051 xfs_agnumber_t, xfs_btnum_t);
52
+struct xfs_btree_cur *xfs_allocbt_stage_cursor(struct xfs_mount *mp,
53
+ struct xbtree_afakeroot *afake, xfs_agnumber_t agno,
54
+ xfs_btnum_t btnum);
5155 extern int xfs_allocbt_maxrecs(struct xfs_mount *, int, int);
5256 extern xfs_extlen_t xfs_allocbt_calc_size(struct xfs_mount *mp,
5357 unsigned long long len);
5458
59
+void xfs_allocbt_commit_staged_btree(struct xfs_btree_cur *cur,
60
+ struct xfs_trans *tp, struct xfs_buf *agbp);
61
+
5562 #endif /* __XFS_ALLOC_BTREE_H__ */