diff options
| author | 2016-09-19 10:25:03 +1000 | |
|---|---|---|
| committer | 2016-09-19 10:25:03 +1000 | |
| commit | 4ed3f68792f6a9c21a290ae777565e7562a09653 (patch) | |
| tree | f44cb6765a8bb601b68b2703d9a80a14d23a0bb8 /fs/xfs/libxfs/xfs_btree.h | |
| parent | xfs: remove xfs_btree_bigkey (diff) | |
| download | linux-dev-4ed3f68792f6a9c21a290ae777565e7562a09653.tar.xz linux-dev-4ed3f68792f6a9c21a290ae777565e7562a09653.zip | |
xfs: create a standard btree size calculator code
Create a helper to generate AG btree height calculator functions.
This will be used (much) later when we get to the refcount btree.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to '')
| -rw-r--r-- | fs/xfs/libxfs/xfs_btree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.h b/fs/xfs/libxfs/xfs_btree.h index f41a4cfff740..1c148f5c5675 100644 --- a/fs/xfs/libxfs/xfs_btree.h +++ b/fs/xfs/libxfs/xfs_btree.h @@ -501,6 +501,8 @@ bool xfs_btree_sblock_v5hdr_verify(struct xfs_buf *bp); bool xfs_btree_sblock_verify(struct xfs_buf *bp, unsigned int max_recs); uint xfs_btree_compute_maxlevels(struct xfs_mount *mp, uint *limits, unsigned long len); +xfs_extlen_t xfs_btree_calc_size(struct xfs_mount *mp, uint *limits, + unsigned long long len); /* return codes */ #define XFS_BTREE_QUERY_RANGE_CONTINUE 0 /* keep iterating */ |
