Message ID | 20200129170953.13945-1-fdmanana@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2] Btrfs: send, fix emission of invalid clone operations within the same file | expand |
On Wed, Jan 29, 2020 at 05:09:53PM +0000, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
[...]
Added to misc-next, thanks.
Hey. Just wanted to ask whether this is going to be backported to 5.5? Cheers, Chris.
On Tue, Feb 11, 2020 at 2:41 PM Christoph Anton Mitterer <calestyo@scientia.net> wrote: > > Hey. > > Just wanted to ask whether this is going to be backported to 5.5? It's a bug fix, so yes. In fact you can check that yourself: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.5.3 thanks > > Cheers, > Chris. >
On Tue, 2020-02-11 at 14:46 +0000, Filipe Manana wrote:
> It's a bug fix, so yes. In fact you can check that yourself:
Thanks... actually I did check it directly in linux-stable.git ... but
it must have been merged shortly afterwards ^^
Cheers,
Chris.
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 091e5bc8c7ea..a055b657cb85 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -1269,7 +1269,8 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_) * destination of the stream. */ if (ino == bctx->cur_objectid && - offset >= bctx->sctx->cur_inode_next_write_offset) + offset + bctx->extent_len > + bctx->sctx->cur_inode_next_write_offset) return 0; }