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
149 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) in xfs_iomap_write_direct()
151 imap->br_blockcount + in xfs_iomap_write_direct()
152 imap->br_startoff); in xfs_iomap_write_direct()
206 imap, &nimaps, &free_list); in xfs_iomap_write_direct()
228 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_direct()
229 error = xfs_alert_fsblock_zero(ip, imap); in xfs_iomap_write_direct()
257 xfs_bmbt_irec_t *imap, in xfs_iomap_eof_want_preallocate() argument
287 error = xfs_bmapi_read(ip, start_fsb, count_fsb, imap, &imaps, in xfs_iomap_eof_want_preallocate()
292 if ((imap[n].br_startblock != HOLESTARTBLOCK) && in xfs_iomap_eof_want_preallocate()
293 (imap[n].br_startblock != DELAYSTARTBLOCK)) in xfs_iomap_eof_want_preallocate()
295 start_fsb += imap[n].br_blockcount; in xfs_iomap_eof_want_preallocate()
296 count_fsb -= imap[n].br_blockcount; in xfs_iomap_eof_want_preallocate()
298 if (imap[n].br_startblock == DELAYSTARTBLOCK) in xfs_iomap_eof_want_preallocate()
327 xfs_bmbt_irec_t *imap, in xfs_iomap_eof_prealloc_initial_size() argument
355 error = xfs_bmapi_read(ip, start_fsb, 1, imap, &imaps, XFS_BMAPI_ENTIRE); in xfs_iomap_eof_prealloc_initial_size()
360 if (imap[0].br_startblock == HOLESTARTBLOCK) in xfs_iomap_eof_prealloc_initial_size()
362 if (imap[0].br_blockcount <= (MAXEXTLEN >> 1)) in xfs_iomap_eof_prealloc_initial_size()
363 return imap[0].br_blockcount << 1; in xfs_iomap_eof_prealloc_initial_size()
438 struct xfs_bmbt_irec *imap, in xfs_iomap_prealloc_size() argument
448 imap, nimaps); in xfs_iomap_prealloc_size()
544 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS]; in xfs_iomap_write_delay() local
562 imap, XFS_WRITE_IMAPS, &prealloc); in xfs_iomap_write_delay()
570 alloc_blocks = xfs_iomap_prealloc_size(mp, ip, offset, imap, in xfs_iomap_write_delay()
597 imap, &nimaps, XFS_BMAPI_ENTIRE); in xfs_iomap_write_delay()
621 if (!(imap[0].br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_delay()
622 return xfs_alert_fsblock_zero(ip, &imap[0]); in xfs_iomap_write_delay()
631 *ret_imap = imap[0]; in xfs_iomap_write_delay()
649 xfs_bmbt_irec_t *imap) in xfs_iomap_write_allocate() argument
670 count_fsb = imap->br_blockcount; in xfs_iomap_write_allocate()
671 map_start_fsb = imap->br_startoff; in xfs_iomap_write_allocate()
755 imap, &nimaps, &free_list); in xfs_iomap_write_allocate()
774 if (!(imap->br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_allocate()
775 return xfs_alert_fsblock_zero(ip, imap); in xfs_iomap_write_allocate()
777 if ((offset_fsb >= imap->br_startoff) && in xfs_iomap_write_allocate()
778 (offset_fsb < (imap->br_startoff + in xfs_iomap_write_allocate()
779 imap->br_blockcount))) { in xfs_iomap_write_allocate()
788 count_fsb -= imap->br_blockcount; in xfs_iomap_write_allocate()
789 map_start_fsb = imap->br_startoff + imap->br_blockcount; in xfs_iomap_write_allocate()
813 xfs_bmbt_irec_t imap; in xfs_iomap_write_unwritten() local
870 1, &imap, &nimaps, &free_list); in xfs_iomap_write_unwritten()
898 if (!(imap.br_startblock || XFS_IS_REALTIME_INODE(ip))) in xfs_iomap_write_unwritten()
899 return xfs_alert_fsblock_zero(ip, &imap); in xfs_iomap_write_unwritten()
901 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
906 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten()