Lines Matching refs:imap
151 xfs_bmbt_irec_t *imap, in xfs_imap_to_bmap() argument
167 for (pbm = 0; imaps && pbm < iomaps; imaps--, iomapp++, imap++, pbm++) { in xfs_imap_to_bmap()
168 iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_imap_to_bmap()
170 iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_imap_to_bmap()
179 start_block = imap->br_startblock; in xfs_imap_to_bmap()
188 if (ISUNWRITTEN(imap)) in xfs_imap_to_bmap()
214 xfs_bmbt_irec_t imap; in xfs_iomap() local
271 bmapi_flags, NULL, 0, &imap, in xfs_iomap()
281 if (nimaps && (imap.br_startblock != HOLESTARTBLOCK)) { in xfs_iomap()
283 offset, count, iomapp, &imap, flags); in xfs_iomap()
289 count, flags, &imap, &nimaps, nimaps); in xfs_iomap()
292 flags, &imap, &nimaps); in xfs_iomap()
296 offset, count, iomapp, &imap, flags); in xfs_iomap()
305 if (nimaps && !ISNULLSTARTBLOCK(imap.br_startblock)) { in xfs_iomap()
307 offset, count, iomapp, &imap, flags); in xfs_iomap()
311 error = XFS_IOMAP_WRITE_ALLOCATE(mp, io, &imap, &nimaps); in xfs_iomap()
321 *niomaps = xfs_imap_to_bmap(io, offset, &imap, in xfs_iomap()
387 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS], *imapp; in xfs_iomap_write_direct() local
490 imapp = &imap[0]; in xfs_iomap_write_direct()
517 *ret_imap = imap[0]; in xfs_iomap_write_direct()
558 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS]; in xfs_iomap_write_delay() local
611 0, &firstblock, 0, imap, &nimaps, NULL); in xfs_iomap_write_delay()
617 !imap[n].br_startblock) { in xfs_iomap_write_delay()
625 imap[n].br_startblock, in xfs_iomap_write_delay()
626 imap[n].br_startoff, in xfs_iomap_write_delay()
627 imap[n].br_blockcount, in xfs_iomap_write_delay()
628 imap[n].br_state); in xfs_iomap_write_delay()
630 if ((imap[n].br_startblock != HOLESTARTBLOCK) && in xfs_iomap_write_delay()
631 (imap[n].br_startblock != DELAYSTARTBLOCK)) { in xfs_iomap_write_delay()
634 start_fsb += imap[n].br_blockcount; in xfs_iomap_write_delay()
635 count_fsb -= imap[n].br_blockcount; in xfs_iomap_write_delay()
703 XFS_BMAPI_ENTIRE, &firstblock, 1, imap, in xfs_iomap_write_delay()
725 *ret_imap = imap[0]; in xfs_iomap_write_delay()
759 xfs_bmbt_irec_t imap[XFS_STRAT_WRITE_IMAPS]; in xfs_iomap_write_allocate() local
836 imap, &nimaps, &free_list); in xfs_iomap_write_allocate()
860 !imap[i].br_startblock) { in xfs_iomap_write_allocate()
867 imap[i].br_startblock, in xfs_iomap_write_allocate()
868 imap[i].br_startoff, in xfs_iomap_write_allocate()
869 imap[i].br_blockcount,imap[i].br_state); in xfs_iomap_write_allocate()
871 if ((map->br_startoff >= imap[i].br_startoff) && in xfs_iomap_write_allocate()
872 (map->br_startoff < (imap[i].br_startoff + in xfs_iomap_write_allocate()
873 imap[i].br_blockcount))) { in xfs_iomap_write_allocate()
874 *map = imap[i]; in xfs_iomap_write_allocate()
879 count_fsb -= imap[i].br_blockcount; in xfs_iomap_write_allocate()
886 offset_fsb = imap[nimaps].br_startoff + in xfs_iomap_write_allocate()
887 imap[nimaps].br_blockcount; in xfs_iomap_write_allocate()
911 xfs_bmbt_irec_t imap; in xfs_iomap_write_unwritten() local
956 1, &imap, &nimaps, &free_list); in xfs_iomap_write_unwritten()
970 if ( !(io->io_flags & XFS_IOCORE_RT) && !imap.br_startblock) { in xfs_iomap_write_unwritten()
976 imap.br_startblock,imap.br_startoff, in xfs_iomap_write_unwritten()
977 imap.br_blockcount,imap.br_state); in xfs_iomap_write_unwritten()
980 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
985 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten()