Lines Matching defs:imap

227 	struct xfs_bmbt_irec	*imap,
232 !isnullstartblock(imap->br_startblock)) {
238 return xfs_reflink_trim_around_shared(ip, imap, shared);
308 struct xfs_bmbt_irec *imap,
313 xfs_fileoff_t offset_fsb = imap->br_startoff;
314 xfs_filblks_t count_fsb = imap->br_blockcount;
326 xfs_trim_extent(imap, imap->br_startoff,
327 cmap->br_startoff - imap->br_startoff);
328 return xfs_bmap_trim_cow(ip, imap, shared);
333 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount);
347 struct xfs_bmbt_irec *imap,
354 xfs_fileoff_t offset_fsb = imap->br_startoff;
355 xfs_filblks_t count_fsb = imap->br_blockcount;
368 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
374 resaligned = xfs_aligned_fsb_count(imap->br_startoff,
375 imap->br_blockcount, xfs_get_cowextsz_hint(ip));
393 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
410 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount,
792 * - Read src's bmbt at the start of srange ("imap")
793 * - If imap doesn't exist, make imap appear to start at the end of srange
795 * - If imap starts before srange, advance imap to start at srange.
796 * - If imap goes beyond srange, truncate imap to end at the end of srange.
797 * - Punch (imap start - srange start + imap len) blocks from dest at
799 * - If imap points to a real range of pblks,
800 * > Increase the refcount of the imap's pblks
801 * > Map imap's pblks into dest at the offset
802 * (drange start + imap start - srange start)
803 * - Advance drange and srange by (imap start - srange start + imap len)
1166 struct xfs_bmbt_irec imap;
1187 error = xfs_bmapi_read(src, srcoff, len, &imap, &nimaps, 0);
1198 ASSERT(nimaps == 1 && imap.br_startoff == srcoff);
1199 if (imap.br_startblock == DELAYSTARTBLOCK) {
1200 ASSERT(imap.br_startblock != DELAYSTARTBLOCK);
1205 trace_xfs_reflink_remap_extent_src(src, &imap);
1208 imap.br_startoff = destoff;
1209 error = xfs_reflink_remap_extent(dest, &imap, new_isize);
1219 srcoff += imap.br_blockcount;
1220 destoff += imap.br_blockcount;
1221 len -= imap.br_blockcount;
1222 remapped_len += imap.br_blockcount;