Lines Matching refs:imap
267 struct xfs_bmbt_irec imap; in xfs_map_blocks() local
310 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks()
311 cow_fsb = imap.br_startoff; in xfs_map_blocks()
334 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
335 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks()
340 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks()
341 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
342 imap.br_startoff = offset_fsb; in xfs_map_blocks()
343 imap.br_startblock = HOLESTARTBLOCK; in xfs_map_blocks()
344 imap.br_state = XFS_EXT_NORM; in xfs_map_blocks()
354 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
355 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
358 if (imap.br_startblock != HOLESTARTBLOCK && in xfs_map_blocks()
359 isnullstartblock(imap.br_startblock)) in xfs_map_blocks()
362 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0); in xfs_map_blocks()
363 trace_xfs_map_blocks_found(ip, offset, count, whichfork, &imap); in xfs_map_blocks()
395 trace_xfs_map_blocks_alloc(ip, offset, count, whichfork, &imap); in xfs_map_blocks()