Lines Matching refs:irec

104 	struct xfs_bmbt_irec	*irec,  in xchk_bmap_get_rmap()  argument
116 if (irec->br_state == XFS_EXT_UNWRITTEN) in xchk_bmap_get_rmap()
126 offset = irec->br_startoff; in xchk_bmap_get_rmap()
161 irec->br_startoff); in xchk_bmap_get_rmap()
169 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
191 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
193 irec->br_startoff); in xchk_bmap_xref_rmap()
203 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
204 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
206 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
211 irec->br_startoff); in xchk_bmap_xref_rmap()
221 !!(irec->br_state == XFS_EXT_UNWRITTEN) != in xchk_bmap_xref_rmap()
224 irec->br_startoff); in xchk_bmap_xref_rmap()
229 irec->br_startoff); in xchk_bmap_xref_rmap()
232 irec->br_startoff); in xchk_bmap_xref_rmap()
240 struct xfs_bmbt_irec *irec) in xchk_bmap_rt_iextent_xref() argument
242 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock, in xchk_bmap_rt_iextent_xref()
243 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
251 struct xfs_bmbt_irec *irec) in xchk_bmap_iextent_xref() argument
259 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref()
260 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref()
261 len = irec->br_blockcount; in xchk_bmap_iextent_xref()
265 irec->br_startoff, &error)) in xchk_bmap_iextent_xref()
270 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref()
278 irec->br_blockcount); in xchk_bmap_iextent_xref()
282 irec->br_blockcount); in xchk_bmap_iextent_xref()
297 struct xfs_bmbt_irec *irec) in xchk_bmap_dirattr_extent() argument
305 if (!xfs_verify_dablk(mp, irec->br_startoff)) in xchk_bmap_dirattr_extent()
307 irec->br_startoff); in xchk_bmap_dirattr_extent()
309 off = irec->br_startoff + irec->br_blockcount - 1; in xchk_bmap_dirattr_extent()
319 struct xfs_bmbt_irec *irec) in xchk_bmap_iextent() argument
329 if (irec->br_startoff < info->lastoff) in xchk_bmap_iextent()
331 irec->br_startoff); in xchk_bmap_iextent()
333 xchk_bmap_dirattr_extent(ip, info, irec); in xchk_bmap_iextent()
336 if (irec->br_startblock == HOLESTARTBLOCK) in xchk_bmap_iextent()
338 irec->br_startoff); in xchk_bmap_iextent()
344 if (isnullstartblock(irec->br_startblock)) in xchk_bmap_iextent()
346 irec->br_startoff); in xchk_bmap_iextent()
349 if (irec->br_blockcount > MAXEXTLEN) in xchk_bmap_iextent()
351 irec->br_startoff); in xchk_bmap_iextent()
352 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xchk_bmap_iextent()
354 irec->br_startoff); in xchk_bmap_iextent()
355 end = irec->br_startblock + irec->br_blockcount - 1; in xchk_bmap_iextent()
357 (!xfs_verify_rtbno(mp, irec->br_startblock) || in xchk_bmap_iextent()
360 irec->br_startoff); in xchk_bmap_iextent()
362 (!xfs_verify_fsbno(mp, irec->br_startblock) || in xchk_bmap_iextent()
364 XFS_FSB_TO_AGNO(mp, irec->br_startblock) != in xchk_bmap_iextent()
367 irec->br_startoff); in xchk_bmap_iextent()
370 if (irec->br_state == XFS_EXT_UNWRITTEN && in xchk_bmap_iextent()
373 irec->br_startoff); in xchk_bmap_iextent()
379 xchk_bmap_rt_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
381 xchk_bmap_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
383 info->lastoff = irec->br_startoff + irec->br_blockcount; in xchk_bmap_iextent()
393 struct xfs_bmbt_irec irec; in xchk_bmapbt_rec() local
429 xfs_bmbt_disk_get_all(&rec->bmbt, &irec); in xchk_bmapbt_rec()
430 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec()
432 irec.br_startoff != iext_irec.br_startoff || in xchk_bmapbt_rec()
433 irec.br_startblock != iext_irec.br_startblock || in xchk_bmapbt_rec()
434 irec.br_blockcount != iext_irec.br_blockcount || in xchk_bmapbt_rec()
435 irec.br_state != iext_irec.br_state) in xchk_bmapbt_rec()
437 irec.br_startoff); in xchk_bmapbt_rec()
485 struct xfs_bmbt_irec irec; in xchk_bmap_check_rmap() local
508 &sbcri->icur, &irec); in xchk_bmap_check_rmap()
520 if (irec.br_startoff != rec->rm_offset) in xchk_bmap_check_rmap()
523 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp, in xchk_bmap_check_rmap()
527 if (irec.br_blockcount > rec->rm_blockcount) in xchk_bmap_check_rmap()
532 rec->rm_startblock += irec.br_blockcount; in xchk_bmap_check_rmap()
533 rec->rm_offset += irec.br_blockcount; in xchk_bmap_check_rmap()
534 rec->rm_blockcount -= irec.br_blockcount; in xchk_bmap_check_rmap()
537 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap()
644 struct xfs_bmbt_irec irec; in xchk_bmap() local
719 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_bmap()
723 if (isnullstartblock(irec.br_startblock)) in xchk_bmap()
725 if (irec.br_startoff >= endoff) { in xchk_bmap()
727 irec.br_startoff); in xchk_bmap()
730 error = xchk_bmap_iextent(ip, &info, &irec); in xchk_bmap()