diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ae6c0d190bc1e75d275894c0a8dc5b22b6489f5e..4875d69871b5a4fedded1c0553420308e886db3b 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -495,7 +495,7 @@ static noinline int compress_file_range(struct inode *inode, add_async_extent(async_cow, start, num_bytes, total_compressed, pages, nr_pages_ret); - if (start + num_bytes < end && start + num_bytes < actual_end) { + if (start + num_bytes < end) { start += num_bytes; pages = NULL; cond_resched();