Lines Matching refs:irec
86 struct xfs_bmbt_irec *irec, in xchk_bmap_get_rmap() argument
106 offset = irec->br_startoff; in xchk_bmap_get_rmap()
141 irec->br_startoff); in xchk_bmap_get_rmap()
149 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
165 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
171 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
173 irec->br_startoff); in xchk_bmap_xref_rmap()
183 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
184 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
186 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
191 irec->br_startoff); in xchk_bmap_xref_rmap()
201 irec->br_state == XFS_EXT_UNWRITTEN && in xchk_bmap_xref_rmap()
204 irec->br_startoff); in xchk_bmap_xref_rmap()
209 irec->br_startoff); in xchk_bmap_xref_rmap()
212 irec->br_startoff); in xchk_bmap_xref_rmap()
220 struct xfs_bmbt_irec *irec) in xchk_bmap_rt_iextent_xref() argument
222 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock, in xchk_bmap_rt_iextent_xref()
223 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
231 struct xfs_bmbt_irec *irec) in xchk_bmap_iextent_xref() argument
239 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref()
240 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref()
241 len = irec->br_blockcount; in xchk_bmap_iextent_xref()
245 irec->br_startoff, &error)) in xchk_bmap_iextent_xref()
250 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref()
258 irec->br_blockcount); in xchk_bmap_iextent_xref()
262 irec->br_blockcount); in xchk_bmap_iextent_xref()
277 struct xfs_bmbt_irec *irec) in xchk_bmap_dirattr_extent() argument
285 if (!xfs_verify_dablk(mp, irec->br_startoff)) in xchk_bmap_dirattr_extent()
287 irec->br_startoff); in xchk_bmap_dirattr_extent()
289 off = irec->br_startoff + irec->br_blockcount - 1; in xchk_bmap_dirattr_extent()
299 struct xfs_bmbt_irec *irec) in xchk_bmap_iextent() argument
309 if (irec->br_startoff < info->lastoff) in xchk_bmap_iextent()
311 irec->br_startoff); in xchk_bmap_iextent()
313 xchk_bmap_dirattr_extent(ip, info, irec); in xchk_bmap_iextent()
316 if (irec->br_startblock == HOLESTARTBLOCK) in xchk_bmap_iextent()
318 irec->br_startoff); in xchk_bmap_iextent()
324 if (isnullstartblock(irec->br_startblock)) in xchk_bmap_iextent()
326 irec->br_startoff); in xchk_bmap_iextent()
329 if (irec->br_blockcount > MAXEXTLEN) in xchk_bmap_iextent()
331 irec->br_startoff); in xchk_bmap_iextent()
332 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xchk_bmap_iextent()
334 irec->br_startoff); in xchk_bmap_iextent()
335 end = irec->br_startblock + irec->br_blockcount - 1; in xchk_bmap_iextent()
337 (!xfs_verify_rtbno(mp, irec->br_startblock) || in xchk_bmap_iextent()
340 irec->br_startoff); in xchk_bmap_iextent()
342 (!xfs_verify_fsbno(mp, irec->br_startblock) || in xchk_bmap_iextent()
344 XFS_FSB_TO_AGNO(mp, irec->br_startblock) != in xchk_bmap_iextent()
347 irec->br_startoff); in xchk_bmap_iextent()
350 if (irec->br_state == XFS_EXT_UNWRITTEN && in xchk_bmap_iextent()
353 irec->br_startoff); in xchk_bmap_iextent()
359 xchk_bmap_rt_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
361 xchk_bmap_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
363 info->lastoff = irec->br_startoff + irec->br_blockcount; in xchk_bmap_iextent()
373 struct xfs_bmbt_irec irec; in xchk_bmapbt_rec() local
409 xfs_bmbt_disk_get_all(&rec->bmbt, &irec); in xchk_bmapbt_rec()
410 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec()
412 irec.br_startoff != iext_irec.br_startoff || in xchk_bmapbt_rec()
413 irec.br_startblock != iext_irec.br_startblock || in xchk_bmapbt_rec()
414 irec.br_blockcount != iext_irec.br_blockcount || in xchk_bmapbt_rec()
415 irec.br_state != iext_irec.br_state) in xchk_bmapbt_rec()
417 irec.br_startoff); in xchk_bmapbt_rec()
465 struct xfs_bmbt_irec irec; in xchk_bmap_check_rmap() local
488 &sbcri->icur, &irec); in xchk_bmap_check_rmap()
500 if (irec.br_startoff != rec->rm_offset) in xchk_bmap_check_rmap()
503 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp, in xchk_bmap_check_rmap()
507 if (irec.br_blockcount > rec->rm_blockcount) in xchk_bmap_check_rmap()
512 rec->rm_startblock += irec.br_blockcount; in xchk_bmap_check_rmap()
513 rec->rm_offset += irec.br_blockcount; in xchk_bmap_check_rmap()
514 rec->rm_blockcount -= irec.br_blockcount; in xchk_bmap_check_rmap()
517 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap()
626 struct xfs_bmbt_irec irec; in xchk_bmap() local
704 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_bmap()
708 if (isnullstartblock(irec.br_startblock)) in xchk_bmap()
710 if (irec.br_startoff >= endoff) { in xchk_bmap()
712 irec.br_startoff); in xchk_bmap()
715 error = xchk_bmap_iextent(ip, &info, &irec); in xchk_bmap()