Lines Matching defs:irec

116 /* Look for a corresponding rmap for this irec. */
120 struct xfs_bmbt_irec *irec,
132 if (irec->br_state == XFS_EXT_UNWRITTEN)
142 offset = irec->br_startoff;
161 irec->br_startoff);
169 struct xfs_bmbt_irec *irec,
179 /* Find the rmap record for this irec. */
180 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
189 irec->br_startoff);
192 if (rmap_end != agbno + irec->br_blockcount)
194 irec->br_startoff);
197 if (rmap.rm_offset != irec->br_startoff)
199 irec->br_startoff);
202 if (rmap_end != irec->br_startoff + irec->br_blockcount)
204 irec->br_startoff);
209 irec->br_startoff);
212 * Check for discrepancies between the unwritten flag in the irec and
218 if (!!(irec->br_state == XFS_EXT_UNWRITTEN) !=
221 irec->br_startoff);
226 irec->br_startoff);
229 irec->br_startoff);
236 struct xfs_bmbt_irec *irec,
246 /* Find the rmap record for this irec. */
247 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
257 irec->br_startoff);
260 if (rmap_end < agbno + irec->br_blockcount)
262 irec->br_startoff);
267 irec->br_startoff);
277 irec->br_startoff);
280 irec->br_startoff);
283 irec->br_startoff);
291 struct xfs_bmbt_irec *irec)
293 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock,
294 irec->br_blockcount);
302 struct xfs_bmbt_irec *irec)
311 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock);
312 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock);
313 len = irec->br_blockcount;
317 irec->br_startoff, &error))
324 xchk_bmap_xref_rmap(info, irec, agbno);
327 info->whichfork, irec->br_startoff);
329 irec->br_blockcount, &oinfo);
331 irec->br_blockcount);
334 irec->br_blockcount);
337 xchk_bmap_xref_rmap(info, irec, agbno);
339 info->whichfork, irec->br_startoff);
340 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount,
343 irec->br_blockcount);
345 irec->br_blockcount);
348 xchk_bmap_xref_rmap_cow(info, irec, agbno);
349 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount,
352 irec->br_blockcount);
354 irec->br_blockcount);
370 struct xfs_bmbt_irec *irec)
378 if (!xfs_verify_dablk(mp, irec->br_startoff))
380 irec->br_startoff);
382 off = irec->br_startoff + irec->br_blockcount - 1;
392 struct xfs_bmbt_irec *irec)
400 if (irec->br_startoff < info->prev_rec.br_startoff +
403 irec->br_startoff);
405 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount))
407 irec->br_startoff);
409 xchk_bmap_dirattr_extent(ip, info, irec);
413 !xfs_verify_rtext(mp, irec->br_startblock, irec->br_blockcount))
415 irec->br_startoff);
417 !xfs_verify_fsbext(mp, irec->br_startblock, irec->br_blockcount))
419 irec->br_startoff);
422 if (irec->br_state == XFS_EXT_UNWRITTEN &&
425 irec->br_startoff);
431 xchk_bmap_rt_iextent_xref(ip, info, irec);
433 xchk_bmap_iextent_xref(ip, info, irec);
442 struct xfs_bmbt_irec irec;
478 xfs_bmbt_disk_get_all(&rec->bmbt, &irec);
479 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) {
481 irec.br_startoff);
485 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur,
487 irec.br_startoff != iext_irec.br_startoff ||
488 irec.br_startblock != iext_irec.br_startblock ||
489 irec.br_blockcount != iext_irec.br_blockcount ||
490 irec.br_state != iext_irec.br_state)
492 irec.br_startoff);
539 struct xfs_bmbt_irec irec;
563 &sbcri->icur, &irec);
576 if (irec.br_startoff != check_rec.rm_offset)
579 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp,
584 if (irec.br_blockcount > check_rec.rm_blockcount)
589 check_rec.rm_startblock += irec.br_blockcount;
590 check_rec.rm_offset += irec.br_blockcount;
591 check_rec.rm_blockcount -= irec.br_blockcount;
594 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec);
704 struct xfs_bmbt_irec *irec)
712 if (irec->br_startoff < info->prev_rec.br_startoff +
715 irec->br_startoff);
717 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount))
719 irec->br_startoff);
722 if (irec->br_blockcount > XFS_MAX_BMBT_EXTLEN)
724 irec->br_startoff);
731 const struct xfs_bmbt_irec *irec)
734 if (irec->br_startblock == HOLESTARTBLOCK)
736 if (irec->br_blockcount > XFS_MAX_BMBT_EXTLEN)
765 * into a single incore mapping. Returns true if @irec has been set to a
772 struct xfs_bmbt_irec *irec)
782 if (!xfs_iext_get_extent(ifp, &info->icur, irec))
785 if (!xchk_bmap_iext_mapping(info, irec)) {
787 irec->br_startoff);
797 if (!xchk_are_bmaps_contiguous(irec, &got))
807 irec->br_blockcount += got.br_blockcount;
817 howmany_64(irec->br_blockcount, XFS_MAX_BMBT_EXTLEN) < nr)
834 struct xfs_bmbt_irec irec;
910 while (xchk_bmap_iext_iter(&info, &irec)) {
915 if (irec.br_startoff >= endoff) {
917 irec.br_startoff);
921 if (isnullstartblock(irec.br_startblock))
922 xchk_bmap_iextent_delalloc(ip, &info, &irec);
924 xchk_bmap_iextent(ip, &info, &irec);
925 memcpy(&info.prev_rec, &irec, sizeof(struct xfs_bmbt_irec));