]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_db: stop using libxfs_rtsummary_wordcount
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Aug 2024 18:41:47 +0000 (11:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 5 Aug 2024 18:52:43 +0000 (11:52 -0700)
Just use the pre-calculated mount value and shift it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
db/check.c

index 0136ce17e3152879076c67d9dec8ccb4416829b6..cdb1e408e79e62bcbd0ef9d31d657851278fa3b3 100644 (file)
@@ -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));
        }