diff options
| author | Christoph Hellwig <[email protected]> | 2024-02-22 20:40:51 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-02-22 20:40:51 +0000 |
| commit | ec793e690f801d97a7ae2a0d429fea1fee4d44aa (patch) | |
| tree | 84a9299e3f64721debd132b53a5ea0b324a5d219 /fs/xfs/libxfs/xfs_rmap_btree.c | |
| parent | xfs: pass a 'bool is_finobt' to xfs_inobt_insert (diff) | |
| download | kernel-ec793e690f801d97a7ae2a0d429fea1fee4d44aa.tar.gz kernel-ec793e690f801d97a7ae2a0d429fea1fee4d44aa.zip | |
xfs: remove xfs_btnum_t
The last checks for bc_btnum can be replaced with helpers that check
the btree ops. This allows adding new btrees to XFS without having
to update a global enum.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
[djwong: complete the ops predicates]
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rmap_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_rmap_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c index abaf5e190e99..b1ecc061fdc9 100644 --- a/fs/xfs/libxfs/xfs_rmap_btree.c +++ b/fs/xfs/libxfs/xfs_rmap_btree.c @@ -518,7 +518,7 @@ xfs_rmapbt_init_cursor( { struct xfs_btree_cur *cur; - cur = xfs_btree_alloc_cursor(mp, tp, XFS_BTNUM_RMAP, &xfs_rmapbt_ops, + cur = xfs_btree_alloc_cursor(mp, tp, &xfs_rmapbt_ops, mp->m_rmap_maxlevels, xfs_rmapbt_cur_cache); cur->bc_ag.pag = xfs_perag_hold(pag); cur->bc_ag.agbp = agbp; |
