Lines Matching full:rts
54 struct xchk_rtsummary *rts; in xchk_setup_rtsummary() local
57 rts = kvzalloc(struct_size(rts, words, mp->m_blockwsize), in xchk_setup_rtsummary()
59 if (!rts) in xchk_setup_rtsummary()
61 sc->buf = rts; in xchk_setup_rtsummary()
103 rts->rextents = xfs_rtb_to_rtx(mp, mp->m_sb.sb_rblocks); in xchk_setup_rtsummary()
104 rextslog = xfs_compute_rextslog(rts->rextents); in xchk_setup_rtsummary()
105 rts->rsumlevels = rextslog + 1; in xchk_setup_rtsummary()
106 rts->rbmblocks = xfs_rtbitmap_blockcount(mp, rts->rextents); in xchk_setup_rtsummary()
107 rsumblocks = xfs_rtsummary_blockcount(mp, rts->rsumlevels, in xchk_setup_rtsummary()
108 rts->rbmblocks); in xchk_setup_rtsummary()
109 rts->rsumsize = XFS_FSB_TO_B(mp, rsumblocks); in xchk_setup_rtsummary()
231 struct xchk_rtsummary *rts = sc->buf; in xchk_rtsum_compare() local
237 rts->args.mp = sc->mp; in xchk_rtsum_compare()
238 rts->args.tp = sc->tp; in xchk_rtsum_compare()
273 error = xfs_rtsummary_read_buf(&rts->args, off); in xchk_rtsum_compare()
278 error = xfsum_copyout(sc, sumoff, rts->words, mp->m_blockwsize); in xchk_rtsum_compare()
280 xfs_rtbuf_cache_relse(&rts->args); in xchk_rtsum_compare()
284 ondisk_info = xfs_rsumblock_infoptr(&rts->args, 0); in xchk_rtsum_compare()
285 if (memcmp(ondisk_info, rts->words, in xchk_rtsum_compare()
288 xfs_rtbuf_cache_relse(&rts->args); in xchk_rtsum_compare()
292 xfs_rtbuf_cache_relse(&rts->args); in xchk_rtsum_compare()
305 struct xchk_rtsummary *rts = sc->buf; in xchk_rtsummary() local
309 if (mp->m_sb.sb_rextents != rts->rextents) { in xchk_rtsummary()
315 if (mp->m_rsumlevels != rts->rsumlevels) { in xchk_rtsummary()
321 if (mp->m_rsumsize != rts->rsumsize) { in xchk_rtsummary()
337 if (mp->m_rsumip->i_disk_size < rts->rsumsize) { in xchk_rtsummary()