Lines Matching refs:got
251 struct xfs_bmbt_irec got;
256 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got))
260 if (got.br_startoff >= offset_fsb + count_fsb)
262 if (got.br_state == XFS_EXT_NORM)
264 if (WARN_ON_ONCE(isnullstartblock(got.br_startblock)))
267 xfs_trim_extent(&got, offset_fsb, count_fsb);
268 if (!got.br_blockcount)
271 got.br_state = XFS_EXT_NORM;
273 XFS_COW_FORK, &icur, &dummy_cur, &got,
277 } while (xfs_iext_next_extent(ip->i_cowfp, &icur, &got));
585 struct xfs_bmbt_irec got, del;
591 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got))
595 while (got.br_startoff + got.br_blockcount > offset_fsb) {
596 del = got;
609 &icur, &got, &del);
631 xfs_bmap_del_extent_cow(ip, &icur, &got, &del);
643 if (!xfs_iext_get_extent(ifp, &icur, &got))
725 struct xfs_bmbt_irec got, del, data;
766 if (!xfs_iext_lookup_extent(ip, ifp, *offset_fsb, &icur, &got) ||
767 got.br_startoff >= end_fsb) {
775 * need to skip them. Preserve @got for the eventual CoW fork
779 while (!xfs_bmap_is_written_extent(&got)) {
780 if (!xfs_iext_next_extent(ifp, &icur, &got) ||
781 got.br_startoff >= end_fsb) {
786 del = got;
839 xfs_bmap_del_extent_cow(ip, &icur, &got, &del);
1561 struct xfs_bmbt_irec got;
1574 found = xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got);
1582 if (isnullstartblock(got.br_startblock) ||
1583 got.br_state != XFS_EXT_NORM)
1586 pag = xfs_perag_get(mp, XFS_FSB_TO_AGNO(mp, got.br_startblock));
1587 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock);
1588 aglen = got.br_blockcount;
1601 found = xfs_iext_next_extent(ifp, &icur, &got);