diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 23:40:46 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:40:46 +0300 |
commit | 3038fd8129384c64946c17198229ee61f6f2c8e1 (patch) | |
tree | a83e31ad70743b61c71a9af25b4f5cdb423b3ac9 /fs/xfs/xfs_iwalk.c | |
parent | 1c8b9fd278c08e16c27a41be484b77383738de1f (diff) | |
download | linux-3038fd8129384c64946c17198229ee61f6f2c8e1.tar.xz |
xfs: remove xfs_inobt_cur
This helper provides no real advantage over just open code the two
calls in it 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/xfs_iwalk.c')
-rw-r--r-- | fs/xfs/xfs_iwalk.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/xfs/xfs_iwalk.c b/fs/xfs/xfs_iwalk.c index dc3d83d7dee1..38092c049c08 100644 --- a/fs/xfs/xfs_iwalk.c +++ b/fs/xfs/xfs_iwalk.c @@ -266,9 +266,10 @@ xfs_iwalk_ag_start( /* Set up a fresh cursor and empty the inobt cache. */ iwag->nr_recs = 0; - error = xfs_inobt_cur(pag, tp, XFS_BTNUM_INO, curpp, agi_bpp); + error = xfs_ialloc_read_agi(pag, tp, agi_bpp); if (error) return error; + *curpp = xfs_inobt_init_cursor(pag, tp, *agi_bpp, XFS_BTNUM_INO); /* Starting at the beginning of the AG? That's easy! */ if (agino == 0) @@ -383,11 +384,11 @@ xfs_iwalk_run_callbacks( } /* ...and recreate the cursor just past where we left off. */ - error = xfs_inobt_cur(iwag->pag, iwag->tp, XFS_BTNUM_INO, curpp, - agi_bpp); + error = xfs_ialloc_read_agi(iwag->pag, iwag->tp, agi_bpp); if (error) return error; - + *curpp = xfs_inobt_init_cursor(iwag->pag, iwag->tp, *agi_bpp, + XFS_BTNUM_INO); return xfs_inobt_lookup(*curpp, next_agino, XFS_LOOKUP_GE, has_more); } |