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