From 5657cb30ccc70da1cb25713ffca91fce33726566 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 5 Aug 2024 11:41:47 -0700 Subject: [PATCH] xfs_db: stop using libxfs_rtsummary_wordcount Just use the pre-calculated mount value and shift it. Signed-off-by: Christoph Hellwig --- db/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/check.c b/db/check.c index 0136ce17e..cdb1e408e 100644 --- a/db/check.c +++ b/db/check.c @@ -1964,8 +1964,7 @@ init( dbmap[c] = xcalloc(mp->m_sb.sb_rblocks, sizeof(**dbmap)); inomap[c] = xcalloc(mp->m_sb.sb_rblocks, sizeof(**inomap)); - words = libxfs_rtsummary_wordcount(mp, mp->m_rsumlevels, - mp->m_sb.sb_rbmblocks); + words = mp->m_rsumsize >> XFS_WORDLOG; sumfile = xcalloc(words, sizeof(union xfs_suminfo_raw)); sumcompute = xcalloc(words, sizeof(union xfs_suminfo_raw)); } -- 2.50.1