diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 21:40:12 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 21:40:12 +0100 |
commit | 1c8b9fd278c08e16c27a41be484b77383738de1f (patch) | |
tree | ae8f62cb75dffa794defabed17c2c4ad6cf89ee6 /fs/xfs/xfs_discard.c | |
parent | xfs: refactor the btree cursor allocation logic in xchk_ag_btcur_init (diff) | |
download | linux-1c8b9fd278c08e16c27a41be484b77383738de1f.tar.xz linux-1c8b9fd278c08e16c27a41be484b77383738de1f.zip |
xfs: split xfs_allocbt_init_cursor
Split xfs_allocbt_init_cursor into separate routines for the by-bno
and by-cnt btrees to prepare for the removal of the xfs_btnum global
enumeration of btree types.
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_discard.c')
-rw-r--r-- | fs/xfs/xfs_discard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_discard.c b/fs/xfs/xfs_discard.c index f0bf1cc98548..268bb734dc0a 100644 --- a/fs/xfs/xfs_discard.c +++ b/fs/xfs/xfs_discard.c @@ -179,7 +179,7 @@ xfs_trim_gather_extents( if (error) goto out_trans_cancel; - cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_CNT); + cur = xfs_cntbt_init_cursor(mp, tp, agbp, pag); /* * Look up the extent length requested in the AGF and start with it. |