Lines Matching full:got

480 	struct xfs_bmbt_irec	*got)  in xrep_cow_find_mapping()  argument
485 if (!xfs_iext_lookup_extent(ip, ifp, startoff, icur, got)) in xrep_cow_find_mapping()
488 if (got->br_startoff > startoff) in xrep_cow_find_mapping()
491 if (got->br_blockcount == 0) in xrep_cow_find_mapping()
494 if (isnullstartblock(got->br_startblock)) in xrep_cow_find_mapping()
497 if (xfs_bmap_is_written_extent(got)) in xrep_cow_find_mapping()
510 * Given a CoW fork mapping @got and a replacement mapping @repl, remap the
511 * beginning of @got with the space described by @rep.
517 const struct xfs_bmbt_irec *got, in xrep_cow_replace_mapping() argument
520 struct xfs_bmbt_irec new = *got; /* struct copy */ in xrep_cow_replace_mapping()
523 ASSERT(!isnullstartblock(got->br_startblock)); in xrep_cow_replace_mapping()
525 trace_xrep_cow_replace_mapping(ip, got, repl->fsbno, repl->len); in xrep_cow_replace_mapping()
527 if (got->br_blockcount == repl->len) { in xrep_cow_replace_mapping()
539 * Move the left side of @got upwards, then insert the new record. in xrep_cow_replace_mapping()
546 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping()
564 struct xfs_bmbt_irec got; in xrep_cow_replace_range() local
571 * Put the existing CoW fork mapping in @got. If @got ends before in xrep_cow_replace_range()
574 error = xrep_cow_find_mapping(xc, &icur, startoff, &got); in xrep_cow_replace_range()
578 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
597 xrep_cow_replace_mapping(sc->ip, &icur, &got, &repl); in xrep_cow_replace_range()
607 got.br_startblock, repl.len); in xrep_cow_replace_range()
610 got.br_startblock, repl.len); in xrep_cow_replace_range()