diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 12:40:51 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:40:51 -0800 |
commit | ec793e690f801d97a7ae2a0d429fea1fee4d44aa (patch) | |
tree | 84a9299e3f64721debd132b53a5ea0b324a5d219 /fs/xfs/libxfs/xfs_ialloc.c | |
parent | fbeef4e061ab28bf556af4ee2a5a9848dc4616c5 (diff) | |
download | linux-ec793e690f801d97a7ae2a0d429fea1fee4d44aa.tar.gz linux-ec793e690f801d97a7ae2a0d429fea1fee4d44aa.tar.bz2 linux-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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: complete the ops predicates]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index e6decc37ff18..e5ac3e5430c4 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -2848,7 +2848,7 @@ xfs_ialloc_count_inodes( struct xfs_ialloc_count_inodes ci = {0}; int error; - ASSERT(cur->bc_btnum == XFS_BTNUM_INO); + ASSERT(xfs_btree_is_ino(cur->bc_ops)); error = xfs_btree_query_all(cur, xfs_ialloc_count_inodes_rec, &ci); if (error) return error; |