Lines Matching full:repl

411 	struct xrep_cow_extent	*repl)  in xrep_cow_alloc()  argument
438 repl->fsbno = args.fsbno; in xrep_cow_alloc()
439 repl->len = args.len; in xrep_cow_alloc()
451 struct xrep_cow_extent *repl) in xrep_cow_alloc_rt() argument
461 false, &repl->fsbno, &repl->len); in xrep_cow_alloc_rt()
465 xfs_refcount_alloc_cow_extent(sc->tp, true, repl->fsbno, repl->len); in xrep_cow_alloc_rt()
510 * Given a CoW fork mapping @got and a replacement mapping @repl, remap the
518 const struct xrep_cow_extent *repl) in xrep_cow_replace_mapping() argument
522 ASSERT(repl->len > 0); 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()
532 new.br_startblock = repl->fsbno; in xrep_cow_replace_mapping()
541 new.br_startoff += repl->len; in xrep_cow_replace_mapping()
542 new.br_startblock += repl->len; in xrep_cow_replace_mapping()
543 new.br_blockcount -= repl->len; in xrep_cow_replace_mapping()
547 new.br_startblock = repl->fsbno; in xrep_cow_replace_mapping()
548 new.br_blockcount = repl->len; in xrep_cow_replace_mapping()
563 struct xrep_cow_extent repl; in xrep_cow_replace_range() local
587 error = xrep_cow_alloc_rt(sc, alloc_len, &repl); in xrep_cow_replace_range()
589 error = xrep_cow_alloc(sc, alloc_len, &repl); 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()
614 *blockcount = repl.len; in xrep_cow_replace_range()