Lines Matching refs:smap
1157 struct xfs_bmbt_irec smap; in xfs_reflink_remap_extent() local
1209 &smap, &nimaps, 0); in xfs_reflink_remap_extent()
1212 ASSERT(nimaps == 1 && smap.br_startoff == dmap->br_startoff); in xfs_reflink_remap_extent()
1213 smap_real = xfs_bmap_is_real_extent(&smap); in xfs_reflink_remap_extent()
1219 dmap->br_blockcount = min(dmap->br_blockcount, smap.br_blockcount); in xfs_reflink_remap_extent()
1220 ASSERT(dmap->br_blockcount == smap.br_blockcount); in xfs_reflink_remap_extent()
1222 trace_xfs_reflink_remap_extent_dest(ip, &smap); in xfs_reflink_remap_extent()
1229 if (dmap->br_startblock == smap.br_startblock) { in xfs_reflink_remap_extent()
1230 if (dmap->br_state != smap.br_state) in xfs_reflink_remap_extent()
1237 smap.br_state == XFS_EXT_UNWRITTEN) in xfs_reflink_remap_extent()
1294 xfs_bmap_unmap_extent(tp, ip, &smap); in xfs_reflink_remap_extent()
1295 xfs_refcount_decrease_extent(tp, &smap); in xfs_reflink_remap_extent()
1296 qdelta -= smap.br_blockcount; in xfs_reflink_remap_extent()
1297 } else if (smap.br_startblock == DELAYSTARTBLOCK) { in xfs_reflink_remap_extent()
1306 error = xfs_bunmapi(NULL, ip, smap.br_startoff, in xfs_reflink_remap_extent()
1307 smap.br_blockcount, 0, 1, &done); in xfs_reflink_remap_extent()