diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-23 19:32:06 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-19 20:45:16 +0200 |
commit | 0ed5f7356daee74244b02e100b3cc043e886e686 (patch) | |
tree | 12bc85f663f6be62fff23c583309bcd0bf0c1237 /fs/xfs/libxfs/xfs_ialloc_btree.h | |
parent | xfs: kill XFS_BTREE_MAXLEVELS (diff) | |
download | linux-0ed5f7356daee74244b02e100b3cc043e886e686.tar.xz linux-0ed5f7356daee74244b02e100b3cc043e886e686.zip |
xfs: compute absolute maximum nlevels for each btree type
Add code for all five btree types so that we can compute the absolute
maximum possible btree height for each btree type. This is a setup for
the next patch, which makes every btree type have its own cursor cache.
The functions are exported so that we can have xfs_db report the
absolute maximum btree heights for each btree type, rather than making
everyone run their own ad-hoc computations.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_ialloc_btree.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc_btree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc_btree.h b/fs/xfs/libxfs/xfs_ialloc_btree.h index 8a322d402e61..6d3e4a3316d7 100644 --- a/fs/xfs/libxfs/xfs_ialloc_btree.h +++ b/fs/xfs/libxfs/xfs_ialloc_btree.h @@ -75,4 +75,6 @@ int xfs_inobt_cur(struct xfs_mount *mp, struct xfs_trans *tp, void xfs_inobt_commit_staged_btree(struct xfs_btree_cur *cur, struct xfs_trans *tp, struct xfs_buf *agbp); +unsigned int xfs_iallocbt_maxlevels_ondisk(void); + #endif /* __XFS_IALLOC_BTREE_H__ */ |