Lines Matching refs:irecs
2422 struct xfs_bmbt_irec *irecs, in xfs_buf_map_from_irec() argument
2442 ASSERT(irecs[i].br_startblock != DELAYSTARTBLOCK && in xfs_buf_map_from_irec()
2443 irecs[i].br_startblock != HOLESTARTBLOCK); in xfs_buf_map_from_irec()
2444 map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock); in xfs_buf_map_from_irec()
2445 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_buf_map_from_irec()
2471 struct xfs_bmbt_irec *irecs = &irec; in xfs_dabuf_map() local
2491 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map()
2495 error = xfs_bmapi_read(dp, (xfs_fileoff_t)bno, nfsb, irecs, in xfs_dabuf_map()
2500 irecs->br_startblock = XFS_DADDR_TO_FSB(mp, mappedbno); in xfs_dabuf_map()
2501 irecs->br_startoff = (xfs_fileoff_t)bno; in xfs_dabuf_map()
2502 irecs->br_blockcount = nfsb; in xfs_dabuf_map()
2503 irecs->br_state = 0; in xfs_dabuf_map()
2507 if (!xfs_da_map_covers_blocks(nirecs, irecs, bno, nfsb)) { in xfs_dabuf_map()
2519 (long long)irecs[i].br_startoff, in xfs_dabuf_map()
2520 (long long)irecs[i].br_startblock, in xfs_dabuf_map()
2521 (long long)irecs[i].br_blockcount, in xfs_dabuf_map()
2522 irecs[i].br_state); in xfs_dabuf_map()
2530 error = xfs_buf_map_from_irec(mp, map, nmaps, irecs, nirecs); in xfs_dabuf_map()
2532 if (irecs != &irec) in xfs_dabuf_map()
2533 kmem_free(irecs); in xfs_dabuf_map()