Lines Matching refs:rtb

38 	struct xchk_rtbitmap	*rtb;  in xchk_setup_rtbitmap()  local
44 rtb = kzalloc(struct_size(rtb, words, xchk_rtbitmap_wordcnt(sc)), in xchk_setup_rtbitmap()
46 if (!rtb) in xchk_setup_rtbitmap()
48 sc->buf = rtb; in xchk_setup_rtbitmap()
49 rtb->sc = sc; in xchk_setup_rtbitmap()
56 error = xrep_setup_rtbitmap(sc, rtb); in xchk_setup_rtbitmap()
61 error = xchk_trans_alloc(sc, rtb->resblks); in xchk_setup_rtbitmap()
83 rtb->rextents = xfs_blen_to_rtbxlen(mp, mp->m_sb.sb_rblocks); in xchk_setup_rtbitmap()
84 rtb->rextslog = xfs_compute_rextslog(rtb->rextents); in xchk_setup_rtbitmap()
85 rtb->rbmblocks = xfs_rtbitmap_blockcount(mp); in xchk_setup_rtbitmap()
96 struct xchk_rtbitmap *rtb, in xchk_rtbitmap_xref() argument
100 struct xfs_scrub *sc = rtb->sc; in xchk_rtbitmap_xref()
112 if (rtb->next_free_rgbno < rgbno) in xchk_rtbitmap_xref()
113 xchk_xref_has_rt_owner(sc, rtb->next_free_rgbno, in xchk_rtbitmap_xref()
114 rgbno - rtb->next_free_rgbno); in xchk_rtbitmap_xref()
115 rtb->next_free_rgbno = rgbno + blockcount; in xchk_rtbitmap_xref()
126 struct xchk_rtbitmap *rtb = priv; in xchk_rtbitmap_rec() local
127 struct xfs_scrub *sc = rtb->sc; in xchk_rtbitmap_rec()
137 xchk_rtbitmap_xref(rtb, startblock, blockcount); in xchk_rtbitmap_rec()
197 struct xchk_rtbitmap *rtb = sc->buf; in xchk_rtbitmap() local
202 if (mp->m_sb.sb_rextents != rtb->rextents) { in xchk_rtbitmap()
208 if (mp->m_sb.sb_rextslog != rtb->rextslog) { in xchk_rtbitmap()
217 if (rtb->rbmblocks > U32_MAX) { in xchk_rtbitmap()
221 if (mp->m_sb.sb_rbmblocks != rtb->rbmblocks) { in xchk_rtbitmap()
237 if (rbmip->i_disk_size < XFS_FSB_TO_B(mp, rtb->rbmblocks)) { in xchk_rtbitmap()
251 rtb->next_free_rgbno = 0; in xchk_rtbitmap()
252 error = xfs_rtalloc_query_all(rtg, sc->tp, xchk_rtbitmap_rec, rtb); in xchk_rtbitmap()
262 if (rtb->next_free_rgbno < last_rgbno) in xchk_rtbitmap()
263 xchk_xref_has_rt_owner(sc, rtb->next_free_rgbno, in xchk_rtbitmap()
264 last_rgbno - rtb->next_free_rgbno); in xchk_rtbitmap()