Lines Matching refs:irec
184 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument
196 if (!xfs_is_reflink_inode(ip) || !xfs_bmap_is_real_extent(irec)) { in xfs_reflink_trim_around_shared()
201 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared()
203 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
204 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
205 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared()
223 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared()
235 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
1001 struct xfs_bmbt_irec *irec, in xfs_reflink_remap_extent() argument
1006 bool real_extent = xfs_bmap_is_real_extent(irec); in xfs_reflink_remap_extent()
1016 unmap_len = irec->br_startoff + irec->br_blockcount - destoff; in xfs_reflink_remap_extent()
1022 XFS_FSB_TO_AGNO(mp, irec->br_startblock)); in xfs_reflink_remap_extent()
1044 qres += irec->br_blockcount; in xfs_reflink_remap_extent()
1050 trace_xfs_reflink_remap(ip, irec->br_startoff, in xfs_reflink_remap_extent()
1051 irec->br_blockcount, irec->br_startblock); in xfs_reflink_remap_extent()
1065 uirec.br_startblock = irec->br_startblock + rlen; in xfs_reflink_remap_extent()
1066 uirec.br_startoff = irec->br_startoff + rlen; in xfs_reflink_remap_extent()
1068 uirec.br_state = irec->br_state; in xfs_reflink_remap_extent()