Lines Matching full:got

365 	struct xfs_bmbt_irec	*got)  in xrep_cow_find_mapping()  argument
370 if (!xfs_iext_lookup_extent(ip, ifp, startoff, icur, got)) in xrep_cow_find_mapping()
373 if (got->br_startoff > startoff) in xrep_cow_find_mapping()
376 if (got->br_blockcount == 0) in xrep_cow_find_mapping()
379 if (isnullstartblock(got->br_startblock)) in xrep_cow_find_mapping()
382 if (xfs_bmap_is_written_extent(got)) in xrep_cow_find_mapping()
395 * Given a CoW fork mapping @got and a replacement mapping @repl, remap the
396 * beginning of @got with the space described by @rep.
402 const struct xfs_bmbt_irec *got, in xrep_cow_replace_mapping() argument
405 struct xfs_bmbt_irec new = *got; /* struct copy */ in xrep_cow_replace_mapping()
408 ASSERT(!isnullstartblock(got->br_startblock)); in xrep_cow_replace_mapping()
410 trace_xrep_cow_replace_mapping(ip, got, repl->fsbno, repl->len); in xrep_cow_replace_mapping()
412 if (got->br_blockcount == repl->len) { in xrep_cow_replace_mapping()
424 * Move the left side of @got upwards, then insert the new record. in xrep_cow_replace_mapping()
431 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping()
449 struct xfs_bmbt_irec got; in xrep_cow_replace_range() local
456 * Put the existing CoW fork mapping in @got. If @got ends before in xrep_cow_replace_range()
459 error = xrep_cow_find_mapping(xc, &icur, startoff, &got); in xrep_cow_replace_range()
463 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
479 xrep_cow_replace_mapping(sc->ip, &icur, &got, &repl); in xrep_cow_replace_range()
487 error = xfsb_bitmap_set(&xc->old_cowfork_fsblocks, got.br_startblock, in xrep_cow_replace_range()