diff options
| author | Darrick J. Wong <[email protected]> | 2018-05-09 17:02:01 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2018-05-16 00:57:05 +0000 |
| commit | 14861c47400b4a1669956d8b027fe4b7855e39f1 (patch) | |
| tree | 43c5f049a512128ed99e054fb94e10fea0b37e1c /fs/xfs/libxfs/xfs_alloc_btree.h | |
| parent | xfs: refactor scrub transaction allocation function (diff) | |
| download | kernel-14861c47400b4a1669956d8b027fe4b7855e39f1.tar.gz kernel-14861c47400b4a1669956d8b027fe4b7855e39f1.zip | |
xfs: add helpers to calculate btree size
Add a bunch of helper functions that calculate the sizes of various
btrees. These will be used to repair btrees and btree headers.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc_btree.h')
| -rw-r--r-- | fs/xfs/libxfs/xfs_alloc_btree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc_btree.h b/fs/xfs/libxfs/xfs_alloc_btree.h index 45e189e7e81c..2fd54728871c 100644 --- a/fs/xfs/libxfs/xfs_alloc_btree.h +++ b/fs/xfs/libxfs/xfs_alloc_btree.h @@ -61,5 +61,7 @@ extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *, struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t, xfs_btnum_t); extern int xfs_allocbt_maxrecs(struct xfs_mount *, int, int); +extern xfs_extlen_t xfs_allocbt_calc_size(struct xfs_mount *mp, + unsigned long long len); #endif /* __XFS_ALLOC_BTREE_H__ */ |
