Re: [PATCH v5] Btrfs: make fsync work after cloning into a file

2014-06-29 Thread Chris Mason
On 06/08/2014 10:48 PM, Filipe David Borba Manana wrote: > When cloning into a file, we were correctly replacing the extent > items in the target range and removing the extent maps. However > we weren't replacing the extent maps with new ones that point to > the new extents - as a consequence, an

[PATCH v5] Btrfs: make fsync work after cloning into a file

2014-06-08 Thread Filipe David Borba Manana
When cloning into a file, we were correctly replacing the extent items in the target range and removing the extent maps. However we weren't replacing the extent maps with new ones that point to the new extents - as a consequence, an incremental fsync (when the inode doesn't have the full sync flag)