Lines Matching refs:irecs
2411 struct xfs_bmbt_irec *irecs, in xfs_buf_map_from_irec() argument
2431 ASSERT(irecs[i].br_startblock != DELAYSTARTBLOCK && in xfs_buf_map_from_irec()
2432 irecs[i].br_startblock != HOLESTARTBLOCK); in xfs_buf_map_from_irec()
2433 map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock); in xfs_buf_map_from_irec()
2434 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_buf_map_from_irec()
2460 struct xfs_bmbt_irec *irecs = &irec; in xfs_dabuf_map() local
2480 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map()
2484 error = xfs_bmapi_read(dp, (xfs_fileoff_t)bno, nfsb, irecs, in xfs_dabuf_map()
2489 irecs->br_startblock = XFS_DADDR_TO_FSB(mp, mappedbno); in xfs_dabuf_map()
2490 irecs->br_startoff = (xfs_fileoff_t)bno; in xfs_dabuf_map()
2491 irecs->br_blockcount = nfsb; in xfs_dabuf_map()
2492 irecs->br_state = 0; in xfs_dabuf_map()
2496 if (!xfs_da_map_covers_blocks(nirecs, irecs, bno, nfsb)) { in xfs_dabuf_map()
2508 (long long)irecs[i].br_startoff, in xfs_dabuf_map()
2509 (long long)irecs[i].br_startblock, in xfs_dabuf_map()
2510 (long long)irecs[i].br_blockcount, in xfs_dabuf_map()
2511 irecs[i].br_state); in xfs_dabuf_map()
2519 error = xfs_buf_map_from_irec(mp, map, nmaps, irecs, nirecs); in xfs_dabuf_map()
2521 if (irecs != &irec) in xfs_dabuf_map()
2522 kmem_free(irecs); in xfs_dabuf_map()