Lines Matching refs:irec

111 	struct xfs_bmbt_irec	*irec,  in xchk_bmap_get_rmap()  argument
123 if (irec->br_state == XFS_EXT_UNWRITTEN) in xchk_bmap_get_rmap()
133 offset = irec->br_startoff; in xchk_bmap_get_rmap()
168 irec->br_startoff); in xchk_bmap_get_rmap()
176 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
192 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
198 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
200 irec->br_startoff); in xchk_bmap_xref_rmap()
210 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
211 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
213 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
218 irec->br_startoff); in xchk_bmap_xref_rmap()
228 !!(irec->br_state == XFS_EXT_UNWRITTEN) != in xchk_bmap_xref_rmap()
231 irec->br_startoff); in xchk_bmap_xref_rmap()
236 irec->br_startoff); in xchk_bmap_xref_rmap()
239 irec->br_startoff); in xchk_bmap_xref_rmap()
248 struct xfs_bmbt_irec *irec) in xchk_bmap_rt_extent_xref() argument
253 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock, in xchk_bmap_rt_extent_xref()
254 irec->br_blockcount); in xchk_bmap_rt_extent_xref()
263 struct xfs_bmbt_irec *irec) in xchk_bmap_extent_xref() argument
274 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock); in xchk_bmap_extent_xref()
275 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_extent_xref()
276 len = irec->br_blockcount; in xchk_bmap_extent_xref()
280 irec->br_startoff, &error)) in xchk_bmap_extent_xref()
285 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_extent_xref()
293 irec->br_blockcount); in xchk_bmap_extent_xref()
297 irec->br_blockcount); in xchk_bmap_extent_xref()
310 struct xfs_bmbt_irec *irec) in xchk_bmap_extent() argument
324 if (irec->br_startoff < info->lastoff) in xchk_bmap_extent()
326 irec->br_startoff); in xchk_bmap_extent()
329 if (irec->br_startblock == HOLESTARTBLOCK) in xchk_bmap_extent()
331 irec->br_startoff); in xchk_bmap_extent()
337 if (isnullstartblock(irec->br_startblock)) in xchk_bmap_extent()
339 irec->br_startoff); in xchk_bmap_extent()
342 if (irec->br_blockcount > MAXEXTLEN) in xchk_bmap_extent()
344 irec->br_startoff); in xchk_bmap_extent()
345 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xchk_bmap_extent()
347 irec->br_startoff); in xchk_bmap_extent()
348 end = irec->br_startblock + irec->br_blockcount - 1; in xchk_bmap_extent()
350 (!xfs_verify_rtbno(mp, irec->br_startblock) || in xchk_bmap_extent()
353 irec->br_startoff); in xchk_bmap_extent()
355 (!xfs_verify_fsbno(mp, irec->br_startblock) || in xchk_bmap_extent()
357 XFS_FSB_TO_AGNO(mp, irec->br_startblock) != in xchk_bmap_extent()
360 irec->br_startoff); in xchk_bmap_extent()
363 if (irec->br_state == XFS_EXT_UNWRITTEN && in xchk_bmap_extent()
366 irec->br_startoff); in xchk_bmap_extent()
369 xchk_bmap_rt_extent_xref(info, ip, cur, irec); in xchk_bmap_extent()
371 xchk_bmap_extent_xref(info, ip, cur, irec); in xchk_bmap_extent()
373 info->lastoff = irec->br_startoff + irec->br_blockcount; in xchk_bmap_extent()
383 struct xfs_bmbt_irec irec; in xchk_bmapbt_rec() local
407 xfs_bmbt_disk_get_all(&rec->bmbt, &irec); in xchk_bmapbt_rec()
408 return xchk_bmap_extent(ip, bs->cur, info, &irec); in xchk_bmapbt_rec()
444 struct xfs_bmbt_irec irec; in xchk_bmap_check_rmap() local
467 &sbcri->icur, &irec); in xchk_bmap_check_rmap()
479 if (irec.br_startoff != rec->rm_offset) in xchk_bmap_check_rmap()
482 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp, in xchk_bmap_check_rmap()
486 if (irec.br_blockcount > rec->rm_blockcount) in xchk_bmap_check_rmap()
491 rec->rm_startblock += irec.br_blockcount; in xchk_bmap_check_rmap()
492 rec->rm_offset += irec.br_blockcount; in xchk_bmap_check_rmap()
493 rec->rm_blockcount -= irec.br_blockcount; in xchk_bmap_check_rmap()
496 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap()
605 struct xfs_bmbt_irec irec; in xchk_bmap() local
690 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_bmap()
694 if (isnullstartblock(irec.br_startblock)) in xchk_bmap()
696 if (irec.br_startoff >= endoff) { in xchk_bmap()
698 irec.br_startoff); in xchk_bmap()
701 error = xchk_bmap_extent(ip, NULL, &info, &irec); in xchk_bmap()