Lines Matching refs:irecs
2454 struct xfs_bmbt_irec *irecs, in xfs_buf_map_from_irec() argument
2474 ASSERT(irecs[i].br_startblock != DELAYSTARTBLOCK && in xfs_buf_map_from_irec()
2475 irecs[i].br_startblock != HOLESTARTBLOCK); in xfs_buf_map_from_irec()
2476 map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock); in xfs_buf_map_from_irec()
2477 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_buf_map_from_irec()
2503 struct xfs_bmbt_irec *irecs = &irec; in xfs_dabuf_map() local
2523 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map()
2527 error = xfs_bmapi_read(dp, (xfs_fileoff_t)bno, nfsb, irecs, in xfs_dabuf_map()
2532 irecs->br_startblock = XFS_DADDR_TO_FSB(mp, mappedbno); in xfs_dabuf_map()
2533 irecs->br_startoff = (xfs_fileoff_t)bno; in xfs_dabuf_map()
2534 irecs->br_blockcount = nfsb; in xfs_dabuf_map()
2535 irecs->br_state = 0; in xfs_dabuf_map()
2539 if (!xfs_da_map_covers_blocks(nirecs, irecs, bno, nfsb)) { in xfs_dabuf_map()
2551 (long long)irecs[i].br_startoff, in xfs_dabuf_map()
2552 (long long)irecs[i].br_startblock, in xfs_dabuf_map()
2553 (long long)irecs[i].br_blockcount, in xfs_dabuf_map()
2554 irecs[i].br_state); in xfs_dabuf_map()
2562 error = xfs_buf_map_from_irec(mp, map, nmaps, irecs, nirecs); in xfs_dabuf_map()
2564 if (irecs != &irec) in xfs_dabuf_map()
2565 kmem_free(irecs); in xfs_dabuf_map()