diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 091e5bc8c7ea93544bd58cefcb8318aa2fe43a44..a055b657cb85bf2693dda6e844260e03372c8964 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; }