aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/zstd.c
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2023-03-07 17:39:38 +0100
committerGravatar David Sterba <dsterba@suse.com> 2023-04-17 18:01:17 +0200
commit7edb9a3e72009917602f80f1c01f2337a103e7e0 (patch)
treed80df374910918e5df429b9b24bc8021f4afdc2a /fs/btrfs/zstd.c
parentbtrfs: cleanup main loop in btrfs_encoded_read_regular_fill_pages (diff)
downloadlinux-7edb9a3e72009917602f80f1c01f2337a103e7e0.tar.gz
linux-7edb9a3e72009917602f80f1c01f2337a103e7e0.tar.bz2
linux-7edb9a3e72009917602f80f1c01f2337a103e7e0.zip
btrfs: move zero filling of compressed read bios into common code
All algorithms have to fill the remainder of the orig_bio with zeroes, so do it in common code. Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zstd.c')
-rw-r--r--fs/btrfs/zstd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/zstd.c b/fs/btrfs/zstd.c
index e34f1ab99d56..f798da267590 100644
--- a/fs/btrfs/zstd.c
+++ b/fs/btrfs/zstd.c
@@ -609,7 +609,6 @@ int zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb)
}
}
ret = 0;
- zero_fill_bio(cb->orig_bio);
done:
if (workspace->in_buf.src)
kunmap_local(workspace->in_buf.src);