Lines Matching refs:imap

98 	xfs_bmbt_irec_t	*imap)  in xfs_alert_fsblock_zero()  argument
105 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero()
106 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
107 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
108 imap->br_state); in xfs_alert_fsblock_zero()
117 xfs_bmbt_irec_t *imap, in xfs_iomap_write_direct() argument
159 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) in xfs_iomap_write_direct()
161 imap->br_blockcount + in xfs_iomap_write_direct()
162 imap->br_startoff); in xfs_iomap_write_direct()
242 bmapi_flags, &firstfsb, resblks, imap, in xfs_iomap_write_direct()
266 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_direct()
267 error = xfs_alert_fsblock_zero(ip, imap); in xfs_iomap_write_direct()
295 xfs_bmbt_irec_t *imap, in xfs_iomap_eof_want_preallocate() argument
325 error = xfs_bmapi_read(ip, start_fsb, count_fsb, imap, &imaps, in xfs_iomap_eof_want_preallocate()
330 if ((imap[n].br_startblock != HOLESTARTBLOCK) && in xfs_iomap_eof_want_preallocate()
331 (imap[n].br_startblock != DELAYSTARTBLOCK)) in xfs_iomap_eof_want_preallocate()
333 start_fsb += imap[n].br_blockcount; in xfs_iomap_eof_want_preallocate()
334 count_fsb -= imap[n].br_blockcount; in xfs_iomap_eof_want_preallocate()
336 if (imap[n].br_startblock == DELAYSTARTBLOCK) in xfs_iomap_eof_want_preallocate()
365 xfs_bmbt_irec_t *imap, in xfs_iomap_eof_prealloc_initial_size() argument
393 error = xfs_bmapi_read(ip, start_fsb, 1, imap, &imaps, XFS_BMAPI_ENTIRE); in xfs_iomap_eof_prealloc_initial_size()
398 if (imap[0].br_startblock == HOLESTARTBLOCK) in xfs_iomap_eof_prealloc_initial_size()
400 if (imap[0].br_blockcount <= (MAXEXTLEN >> 1)) in xfs_iomap_eof_prealloc_initial_size()
401 return imap[0].br_blockcount << 1; in xfs_iomap_eof_prealloc_initial_size()
476 struct xfs_bmbt_irec *imap, in xfs_iomap_prealloc_size() argument
486 imap, nimaps); in xfs_iomap_prealloc_size()
582 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS]; in xfs_iomap_write_delay() local
600 imap, XFS_WRITE_IMAPS, &prealloc); in xfs_iomap_write_delay()
608 alloc_blocks = xfs_iomap_prealloc_size(mp, ip, offset, imap, in xfs_iomap_write_delay()
635 imap, &nimaps, XFS_BMAPI_ENTIRE); in xfs_iomap_write_delay()
659 if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_delay()
660 return xfs_alert_fsblock_zero(ip, &imap[0]); in xfs_iomap_write_delay()
669 *ret_imap = imap[0]; in xfs_iomap_write_delay()
687 xfs_bmbt_irec_t *imap) in xfs_iomap_write_allocate() argument
708 count_fsb = imap->br_blockcount; in xfs_iomap_write_allocate()
709 map_start_fsb = imap->br_startoff; in xfs_iomap_write_allocate()
792 nres, imap, &nimaps, in xfs_iomap_write_allocate()
812 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_allocate()
813 return xfs_alert_fsblock_zero(ip, imap); in xfs_iomap_write_allocate()
815 if ((offset_fsb >= imap->br_startoff) && in xfs_iomap_write_allocate()
816 (offset_fsb < (imap->br_startoff + in xfs_iomap_write_allocate()
817 imap->br_blockcount))) { in xfs_iomap_write_allocate()
826 count_fsb -= imap->br_blockcount; in xfs_iomap_write_allocate()
827 map_start_fsb = imap->br_startoff + imap->br_blockcount; in xfs_iomap_write_allocate()
851 xfs_bmbt_irec_t imap; in xfs_iomap_write_unwritten() local
908 &imap, &nimaps, &free_list); in xfs_iomap_write_unwritten()
936 if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_unwritten()
937 return xfs_alert_fsblock_zero(ip, &imap); in xfs_iomap_write_unwritten()
939 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
944 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten()