Lines Matching defs:irec

140 /* Look for a corresponding rmap for this irec. */
144 struct xfs_bmbt_irec *irec,
156 if (irec->br_state == XFS_EXT_UNWRITTEN)
166 offset = irec->br_startoff;
185 irec->br_startoff);
193 struct xfs_bmbt_irec *irec,
203 /* Find the rmap record for this irec. */
204 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
213 irec->br_startoff);
216 if (rmap_end != agbno + irec->br_blockcount)
218 irec->br_startoff);
221 if (rmap.rm_offset != irec->br_startoff)
223 irec->br_startoff);
226 if (rmap_end != irec->br_startoff + irec->br_blockcount)
228 irec->br_startoff);
233 irec->br_startoff);
236 * Check for discrepancies between the unwritten flag in the irec and
242 if (!!(irec->br_state == XFS_EXT_UNWRITTEN) !=
245 irec->br_startoff);
250 irec->br_startoff);
253 irec->br_startoff);
260 struct xfs_bmbt_irec *irec,
270 /* Find the rmap record for this irec. */
271 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap))
281 irec->br_startoff);
284 if (rmap_end < agbno + irec->br_blockcount)
286 irec->br_startoff);
291 irec->br_startoff);
301 irec->br_startoff);
304 irec->br_startoff);
307 irec->br_startoff);
315 struct xfs_bmbt_irec *irec)
317 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock,
318 irec->br_blockcount);
326 struct xfs_bmbt_irec *irec)
335 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock);
336 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock);
337 len = irec->br_blockcount;
341 irec->br_startoff, &error))
348 xchk_bmap_xref_rmap(info, irec, agbno);
351 info->whichfork, irec->br_startoff);
353 irec->br_blockcount, &oinfo);
355 irec->br_blockcount);
358 irec->br_blockcount);
361 xchk_bmap_xref_rmap(info, irec, agbno);
363 info->whichfork, irec->br_startoff);
364 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount,
367 irec->br_blockcount);
369 irec->br_blockcount);
372 xchk_bmap_xref_rmap_cow(info, irec, agbno);
373 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount,
376 irec->br_blockcount);
378 irec->br_blockcount);
394 struct xfs_bmbt_irec *irec)
402 if (!xfs_verify_dablk(mp, irec->br_startoff))
404 irec->br_startoff);
406 off = irec->br_startoff + irec->br_blockcount - 1;
416 struct xfs_bmbt_irec *irec)
424 if (irec->br_startoff < info->prev_rec.br_startoff +
427 irec->br_startoff);
429 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount))
431 irec->br_startoff);
433 xchk_bmap_dirattr_extent(ip, info, irec);
437 !xfs_verify_rtbext(mp, irec->br_startblock, irec->br_blockcount))
439 irec->br_startoff);
441 !xfs_verify_fsbext(mp, irec->br_startblock, irec->br_blockcount))
443 irec->br_startoff);
446 if (irec->br_state == XFS_EXT_UNWRITTEN &&
449 irec->br_startoff);
455 xchk_bmap_rt_iextent_xref(ip, info, irec);
457 xchk_bmap_iextent_xref(ip, info, irec);
466 struct xfs_bmbt_irec irec;
502 xfs_bmbt_disk_get_all(&rec->bmbt, &irec);
503 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) {
505 irec.br_startoff);
509 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur,
511 irec.br_startoff != iext_irec.br_startoff ||
512 irec.br_startblock != iext_irec.br_startblock ||
513 irec.br_blockcount != iext_irec.br_blockcount ||
514 irec.br_state != iext_irec.br_state)
516 irec.br_startoff);
563 struct xfs_bmbt_irec irec;
587 &sbcri->icur, &irec);
600 if (irec.br_startoff != check_rec.rm_offset)
603 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp,
608 if (irec.br_blockcount > check_rec.rm_blockcount)
613 check_rec.rm_startblock += irec.br_blockcount;
614 check_rec.rm_offset += irec.br_blockcount;
615 check_rec.rm_blockcount -= irec.br_blockcount;
618 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec);
785 struct xfs_bmbt_irec *irec)
793 if (irec->br_startoff < info->prev_rec.br_startoff +
796 irec->br_startoff);
798 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount))
800 irec->br_startoff);
803 if (irec->br_blockcount > XFS_MAX_BMBT_EXTLEN)
805 irec->br_startoff);
812 const struct xfs_bmbt_irec *irec)
815 if (irec->br_startblock == HOLESTARTBLOCK)
817 if (irec->br_blockcount > XFS_MAX_BMBT_EXTLEN)
846 * into a single incore mapping. Returns true if @irec has been set to a
853 struct xfs_bmbt_irec *irec)
863 if (!xfs_iext_get_extent(ifp, &info->icur, irec))
866 if (!xchk_bmap_iext_mapping(info, irec)) {
868 irec->br_startoff);
878 if (!xchk_are_bmaps_contiguous(irec, &got))
888 irec->br_blockcount += got.br_blockcount;
898 howmany_64(irec->br_blockcount, XFS_MAX_BMBT_EXTLEN) < nr)
915 struct xfs_bmbt_irec irec;
991 while (xchk_bmap_iext_iter(&info, &irec)) {
996 if (irec.br_startoff >= endoff) {
998 irec.br_startoff);
1002 if (isnullstartblock(irec.br_startblock))
1003 xchk_bmap_iextent_delalloc(ip, &info, &irec);
1005 xchk_bmap_iextent(ip, &info, &irec);
1006 memcpy(&info.prev_rec, &irec, sizeof(struct xfs_bmbt_irec));