From: Darrick J. Wong <djwong@xxxxxxxxxx> Compute max rt refcount btree height information when we set up libxfs. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- libxfs/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libxfs/init.c b/libxfs/init.c index f92805620c33f1..00bd46a6013e28 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -597,7 +597,8 @@ static inline void xfs_rtbtree_compute_maxlevels( struct xfs_mount *mp) { - mp->m_rtbtree_maxlevels = mp->m_rtrmap_maxlevels; + mp->m_rtbtree_maxlevels = max(mp->m_rtrmap_maxlevels, + mp->m_rtrefc_maxlevels); } /* Compute maximum possible height of all btrees. */ @@ -615,6 +616,7 @@ libxfs_compute_all_maxlevels( xfs_rmapbt_compute_maxlevels(mp); xfs_rtrmapbt_compute_maxlevels(mp); xfs_refcountbt_compute_maxlevels(mp); + xfs_rtrefcountbt_compute_maxlevels(mp); xfs_agbtree_compute_maxlevels(mp); xfs_rtbtree_compute_maxlevels(mp);