summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_ialloc_btree.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-22 12:39:39 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 12:39:39 -0800
commit6234dee7e6f58676379f3a2d8b0629a6e9a427fd (patch)
tree68c2a8de535e33114a77838451269520d1a36a1b /fs/xfs/libxfs/xfs_ialloc_btree.c
parentf6c98d921a9e5b753ac1a35d540a6487ee111a33 (diff)
downloadlinux-6234dee7e6f58676379f3a2d8b0629a6e9a427fd.tar.gz
linux-6234dee7e6f58676379f3a2d8b0629a6e9a427fd.tar.bz2
linux-6234dee7e6f58676379f3a2d8b0629a6e9a427fd.zip
xfs: remove xfs_inobt_stage_cursor
Just open code the two calls in the callers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_ialloc_btree.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.c b/fs/xfs/libxfs/xfs_ialloc_btree.c
index 48bfea0e2a20..b45a2e581313 100644
--- a/fs/xfs/libxfs/xfs_ialloc_btree.c
+++ b/fs/xfs/libxfs/xfs_ialloc_btree.c
@@ -489,20 +489,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.