# Re: \[PATCH v1 3/8\] btrfs: add .copy\_file\_range file operation

- From: David Sterba \<hidden\>
- Date: 2015-09-09 08:40:00 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/09/99224
- Thread: https://ratatoskr.run/linux-nfs/2015/09/99106/t.md

```text
On Fri, Sep 04, 2015 at 04:16:57PM -0400, Anna Schumaker wrote:
> From: Zach Brown <redacted>
> 
> This rearranges the existing COPY_RANGE ioctl implementation so that the
> .copy_file_range file operation can call the core loop that copies file
> data extent items.
> 
> The extent copying loop is lifted up into its own function.  It retains
> the core btrfs error checks that should be shared.
> 
> Signed-off-by: Zach Brown <redacted>
> Signed-off-by: Anna Schumaker <redacted>

Reviewed-by: David Sterba <dsterba@suse.com>
```
