Lines Matching full:got
248 struct xfs_bmbt_irec got; in xfs_reflink_convert_cow_locked() local
253 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked()
257 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
259 if (got.br_state == XFS_EXT_NORM) in xfs_reflink_convert_cow_locked()
261 if (WARN_ON_ONCE(isnullstartblock(got.br_startblock))) in xfs_reflink_convert_cow_locked()
264 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_reflink_convert_cow_locked()
265 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
268 got.br_state = XFS_EXT_NORM; in xfs_reflink_convert_cow_locked()
270 XFS_COW_FORK, &icur, &dummy_cur, &got, in xfs_reflink_convert_cow_locked()
274 } while (xfs_iext_next_extent(ip->i_cowfp, &icur, &got)); in xfs_reflink_convert_cow_locked()
465 struct xfs_bmbt_irec got, del; in xfs_reflink_cancel_cow_blocks() local
471 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) in xfs_reflink_cancel_cow_blocks()
475 while (got.br_startoff + got.br_blockcount > offset_fsb) { in xfs_reflink_cancel_cow_blocks()
476 del = got; in xfs_reflink_cancel_cow_blocks()
489 &icur, &got, &del); in xfs_reflink_cancel_cow_blocks()
508 xfs_bmap_del_extent_cow(ip, &icur, &got, &del); in xfs_reflink_cancel_cow_blocks()
521 if (!xfs_iext_get_extent(ifp, &icur, &got)) in xfs_reflink_cancel_cow_blocks()
602 struct xfs_bmbt_irec got, del; in xfs_reflink_end_cow_extent() local
636 if (!xfs_iext_lookup_extent_before(ip, ifp, end_fsb, &icur, &got) || in xfs_reflink_end_cow_extent()
637 got.br_startoff + got.br_blockcount <= offset_fsb) { in xfs_reflink_end_cow_extent()
643 * Structure copy @got into @del, then trim @del to the range that we in xfs_reflink_end_cow_extent()
644 * were asked to remap. We preserve @got for the eventual CoW fork in xfs_reflink_end_cow_extent()
648 del = got; in xfs_reflink_end_cow_extent()
658 if (!xfs_bmap_is_written_extent(&got)) { in xfs_reflink_end_cow_extent()
669 /* Trim the extent to whatever got unmapped. */ in xfs_reflink_end_cow_extent()
684 xfs_bmap_del_extent_cow(ip, &icur, &got, &del); in xfs_reflink_end_cow_extent()
1361 struct xfs_bmbt_irec got; in xfs_reflink_inode_has_shared_extents() local
1381 found = xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got); in xfs_reflink_inode_has_shared_extents()
1383 if (isnullstartblock(got.br_startblock) || in xfs_reflink_inode_has_shared_extents()
1384 got.br_state != XFS_EXT_NORM) in xfs_reflink_inode_has_shared_extents()
1386 agno = XFS_FSB_TO_AGNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents()
1387 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents()
1388 aglen = got.br_blockcount; in xfs_reflink_inode_has_shared_extents()
1400 found = xfs_iext_next_extent(ifp, &icur, &got); in xfs_reflink_inode_has_shared_extents()