• Home
  • Raw
  • Download

Lines Matching refs:imap

227 	struct xfs_bmbt_irec	*imap,  in xfs_bmap_trim_cow()  argument
232 !isnullstartblock(imap->br_startblock)) { in xfs_bmap_trim_cow()
238 return xfs_reflink_trim_around_shared(ip, imap, shared); in xfs_bmap_trim_cow()
308 struct xfs_bmbt_irec *imap, in xfs_find_trim_cow_extent() argument
313 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent()
314 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent()
326 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent()
327 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent()
328 return xfs_bmap_trim_cow(ip, imap, shared); in xfs_find_trim_cow_extent()
333 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
347 struct xfs_bmbt_irec *imap, in xfs_reflink_allocate_cow() argument
354 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_allocate_cow()
355 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_allocate_cow()
368 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found); in xfs_reflink_allocate_cow()
374 resaligned = xfs_aligned_fsb_count(imap->br_startoff, in xfs_reflink_allocate_cow()
375 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); in xfs_reflink_allocate_cow()
393 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found); in xfs_reflink_allocate_cow()
410 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_allocate_cow()
1166 struct xfs_bmbt_irec imap; in xfs_reflink_remap_blocks() local
1187 error = xfs_bmapi_read(src, srcoff, len, &imap, &nimaps, 0); in xfs_reflink_remap_blocks()
1198 ASSERT(nimaps == 1 && imap.br_startoff == srcoff); in xfs_reflink_remap_blocks()
1199 if (imap.br_startblock == DELAYSTARTBLOCK) { in xfs_reflink_remap_blocks()
1200 ASSERT(imap.br_startblock != DELAYSTARTBLOCK); in xfs_reflink_remap_blocks()
1205 trace_xfs_reflink_remap_extent_src(src, &imap); in xfs_reflink_remap_blocks()
1208 imap.br_startoff = destoff; in xfs_reflink_remap_blocks()
1209 error = xfs_reflink_remap_extent(dest, &imap, new_isize); in xfs_reflink_remap_blocks()
1219 srcoff += imap.br_blockcount; in xfs_reflink_remap_blocks()
1220 destoff += imap.br_blockcount; in xfs_reflink_remap_blocks()
1221 len -= imap.br_blockcount; in xfs_reflink_remap_blocks()
1222 remapped_len += imap.br_blockcount; in xfs_reflink_remap_blocks()