diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 21:39:45 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 21:39:45 +0100 |
commit | 02f7ebf5f99c3776bbf048786885eeafeb2f21ca (patch) | |
tree | 5cbdcdefc3dbed729a5ab96d420ab26f7b1db888 /fs/xfs/scrub/bmap_repair.c | |
parent | xfs: fold xfs_bmbt_init_common into xfs_bmbt_init_cursor (diff) | |
download | linux-02f7ebf5f99c3776bbf048786885eeafeb2f21ca.tar.xz linux-02f7ebf5f99c3776bbf048786885eeafeb2f21ca.zip |
xfs: remove xfs_bmbt_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 '')
-rw-r--r-- | fs/xfs/scrub/bmap_repair.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/xfs/scrub/bmap_repair.c b/fs/xfs/scrub/bmap_repair.c index a4bb89fdd510..1e656fab5e41 100644 --- a/fs/xfs/scrub/bmap_repair.c +++ b/fs/xfs/scrub/bmap_repair.c @@ -639,7 +639,13 @@ xrep_bmap_build_new_fork( rb->new_bmapbt.bload.get_records = xrep_bmap_get_records; rb->new_bmapbt.bload.claim_block = xrep_bmap_claim_block; rb->new_bmapbt.bload.iroot_size = xrep_bmap_iroot_size; - bmap_cur = xfs_bmbt_stage_cursor(sc->mp, sc->ip, ifake); + + /* + * Allocate a new bmap btree cursor for reloading an inode block mapping + * data structure. + */ + bmap_cur = xfs_bmbt_init_cursor(sc->mp, NULL, sc->ip, XFS_STAGING_FORK); + xfs_btree_stage_ifakeroot(bmap_cur, ifake); /* * Figure out the size and format of the new fork, then fill it with |