@@ -147,6 +147,7 @@
#define xfs_initialize_perag_data libxfs_initialize_perag_data
#define xfs_init_local_fork libxfs_init_local_fork
+#define xfs_inobt_init_cursor libxfs_inobt_init_cursor
#define xfs_inobt_maxrecs libxfs_inobt_maxrecs
#define xfs_inobt_stage_cursor libxfs_inobt_stage_cursor
#define xfs_inode_from_disk libxfs_inode_from_disk
@@ -488,20 +488,6 @@ xfs_inobt_init_cursor(
return cur;
}
-/* Create an inode btree cursor with a fake root for staging. */
-struct xfs_btree_cur *
-xfs_inobt_stage_cursor(
- struct xfs_perag *pag,
- struct xbtree_afakeroot *afake,
- xfs_btnum_t btnum)
-{
- struct xfs_btree_cur *cur;
-
- cur = xfs_inobt_init_cursor(pag, NULL, NULL, btnum);
- xfs_btree_stage_afakeroot(cur, afake);
- return cur;
-}
-
/*
* Install a new inobt btree root. Caller is responsible for invalidating
* and freeing the old btree blocks.
@@ -48,8 +48,6 @@ struct xfs_perag;
extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_perag *pag,
struct xfs_trans *tp, struct xfs_buf *agbp, xfs_btnum_t btnum);
-struct xfs_btree_cur *xfs_inobt_stage_cursor(struct xfs_perag *pag,
- struct xbtree_afakeroot *afake, xfs_btnum_t btnum);
extern int xfs_inobt_maxrecs(struct xfs_mount *, int, int);
/* ir_holemask to inode allocation bitmap conversion */
@@ -524,8 +524,9 @@ init_ino_cursors(
fino_recs++;
}
- btr_ino->cur = libxfs_inobt_stage_cursor(pag, &btr_ino->newbt.afake,
+ btr_ino->cur = libxfs_inobt_init_cursor(pag, NULL, NULL,
XFS_BTNUM_INO);
+ libxfs_btree_stage_afakeroot(btr_ino->cur, &btr_ino->newbt.afake);
btr_ino->bload.get_records = get_inobt_records;
btr_ino->bload.claim_block = rebuild_claim_block;
@@ -544,8 +545,9 @@ _("Unable to compute inode btree geometry, error %d.\n"), error);
return;
init_rebuild(sc, &XFS_RMAP_OINFO_INOBT, est_agfreeblocks, btr_fino);
- btr_fino->cur = libxfs_inobt_stage_cursor(pag,
- &btr_fino->newbt.afake, XFS_BTNUM_FINO);
+ btr_fino->cur = libxfs_inobt_init_cursor(pag, NULL, NULL,
+ XFS_BTNUM_FINO);
+ libxfs_btree_stage_afakeroot(btr_fino->cur, &btr_fino->newbt.afake);
btr_fino->bload.get_records = get_inobt_records;
btr_fino->bload.claim_block = rebuild_claim_block;