This series backports fixes for the xfstests test cases btrfs/199 btrfs/200 btrfs/203 and btrfs/204. patch 1 is fix for btrfs/200 patch 2 fixes regression in patch 1 and is fix for btrfs/203 patch 3 helps to fix conflicts in patch 4 patch 4 is fix for btrfs/199 patch 5 helps to avoid conflicts in patch6 patch 6 is fix for btrfs/204 patch1 Btrfs: send, allow clone operations within the same file patch2 Btrfs: send, fix emission of invalid clone operations within the same file patch3 btrfs: volumes: Use more straightforward way to calculate map length patch4 btrfs: Ensure we trim ranges across block group boundary patch5 btrfs: fix RWF_NOWAIT write not failling when we need to cow patch6 btrfs: allow btrfs_truncate_block() to fallback to nocow for data space reservation Filipe Manana (3): Btrfs: send, allow clone operations within the same file Btrfs: send, fix emission of invalid clone operations within the same file btrfs: fix RWF_NOWAIT write not failling when we need to cow Qu Wenruo (3): btrfs: volumes: Use more straightforward way to calculate map length btrfs: Ensure we trim ranges across block group boundary btrfs: allow btrfs_truncate_block() to fallback to nocow for data space reservation fs/btrfs/ctree.h | 2 ++ fs/btrfs/extent-tree.c | 41 +++++++++++++++++++++++++++++---------- fs/btrfs/file.c | 23 ++++++++++++++++++---- fs/btrfs/inode.c | 44 +++++++++++++++++++++++++++++++++++------- fs/btrfs/send.c | 19 +++++++++++++----- fs/btrfs/volumes.c | 8 +++++--- 6 files changed, 108 insertions(+), 29 deletions(-) -- 2.25.1